mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Crash fix
This commit is contained in:
parent
823acd6714
commit
b591afa2ec
2 changed files with 2 additions and 1 deletions
|
|
@ -2705,6 +2705,7 @@ public class UnitTypes{
|
|||
new UnitEngine(49 / 4f, -62 / 4f, es, 315f)
|
||||
);
|
||||
|
||||
//TODO repair weapon
|
||||
Vec2[] positions = {/*new Vec2(30f, 50f), */new Vec2(60f, -15f)};
|
||||
int i = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -1111,7 +1111,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
}
|
||||
|
||||
Building build = world.buildWorld(Core.input.mouseWorld().x, Core.input.mouseWorld().y);
|
||||
if(build instanceof ControlBlock cont && cont.canControl() && build.team == player.team() && cont.unit() != player.unit()){
|
||||
if(build instanceof ControlBlock cont && cont.canControl() && build.team == player.team() && cont.unit() != player.unit() && cont.unit().isAI()){
|
||||
return cont.unit();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue