This commit is contained in:
Anuken
2020-03-31 15:01:22 -04:00
parent f1fd072400
commit 77447c59f6
6 changed files with 4 additions and 61 deletions

View File

@ -807,7 +807,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
public void breakBlock(int x, int y){
Tile tile = world.tile(x, y);
//TODO hacky
if(tile.entity != null) tile = tile.entity.tile();
if(tile != null && tile.entity != null) tile = tile.entity.tile();
player.builder().addBuild(new BuildRequest(tile.x, tile.y));
}