Removed Tile#bc(), use Tile.build instead
This commit is contained in:
@@ -516,7 +516,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
|
||||
public boolean requestMatches(BuildPlan request){
|
||||
Tile tile = world.tile(request.x, request.y);
|
||||
return tile != null && tile.block() instanceof ConstructBlock && tile.<ConstructBuild>bc().cblock == request.block;
|
||||
return tile != null && tile.build instanceof ConstructBuild cons && cons.cblock == request.block;
|
||||
}
|
||||
|
||||
public void drawBreaking(int x, int y){
|
||||
|
||||
Reference in New Issue
Block a user