mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-25 02:15:37 +07:00
Bugfixes
This commit is contained in:
parent
7da400608c
commit
7639f8102f
@ -390,7 +390,9 @@ public class LExecutor{
|
|||||||
if(exec.bool(p1)){
|
if(exec.bool(p1)){
|
||||||
Unit result = Units.closest(unit.team, unit.x, unit.y, unit.type().hitSize * 2f, u -> u.isAI() && u.isGrounded() && pay.canPickup(u) && u.within(unit, u.hitSize + unit.hitSize * 1.2f));
|
Unit result = Units.closest(unit.team, unit.x, unit.y, unit.type().hitSize * 2f, u -> u.isAI() && u.isGrounded() && pay.canPickup(u) && u.within(unit, u.hitSize + unit.hitSize * 1.2f));
|
||||||
|
|
||||||
Call.pickedUnitPayload(unit, result);
|
if(result != null){
|
||||||
|
Call.pickedUnitPayload(unit, result);
|
||||||
|
}
|
||||||
}else{ //buildings
|
}else{ //buildings
|
||||||
Building tile = world.buildWorld(unit.x, unit.y);
|
Building tile = world.buildWorld(unit.x, unit.y);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user