mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-25 10:25:42 +07:00
Fixed #3068
This commit is contained in:
parent
a2e75df096
commit
ace9aebf2b
@ -478,7 +478,7 @@ public class LExecutor{
|
||||
Building build = exec.building(p1);
|
||||
int amount = exec.numi(p3);
|
||||
|
||||
if(build != null && exec.obj(p2) instanceof Item item && unit.within(build, logicItemTransferRange)){
|
||||
if(build != null && build.items != null && exec.obj(p2) instanceof Item item && unit.within(build, logicItemTransferRange)){
|
||||
int taken = Math.min(build.items.get(item), Math.min(amount, unit.maxAccepted(item)));
|
||||
|
||||
if(taken > 0){
|
||||
|
@ -1,3 +1,3 @@
|
||||
org.gradle.daemon=true
|
||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||
archash=3f883ca573d8b3132cab878c07487febecf1d4e2
|
||||
archash=f8ef0f3a72de0f79ca49da895fed0b6889cd597e
|
||||
|
Loading…
Reference in New Issue
Block a user