mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-22 04:28:27 +07:00
Fixed trail appearing behind player mech
This commit is contained in:
parent
be8632d94b
commit
6f9b712230
@ -255,7 +255,9 @@ public class Player extends Unit implements BlockBuilder {
|
||||
drawBuilding(this);
|
||||
}
|
||||
|
||||
trail.draw(Palette.lighterOrange, Palette.lightishOrange, 5f);
|
||||
if(isFlying()){
|
||||
trail.draw(Palette.lighterOrange, Palette.lightishOrange, 5f);
|
||||
}
|
||||
}
|
||||
|
||||
public void drawName(){
|
||||
|
@ -62,7 +62,7 @@ public class DesktopInput extends InputHandler{
|
||||
|
||||
@Override
|
||||
public boolean isDrawing(){
|
||||
return mode != none;
|
||||
return mode != none || recipe != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -167,7 +167,7 @@ public class DesktopInput extends InputHandler{
|
||||
|
||||
@Override
|
||||
public boolean touchDown (int screenX, int screenY, int pointer, int button) {
|
||||
if(player.isDead() || state.is(State.menu) || ui.hasDialog()) return false;
|
||||
if(player.isDead() || state.is(State.menu) || ui.hasDialog() || ui.hasMouse()) return false;
|
||||
|
||||
Tile cursor = tileAt(screenX, screenY);
|
||||
if(cursor == null) return false;
|
||||
|
Loading…
Reference in New Issue
Block a user