Added coal purifier block

This commit is contained in:
Anuken
2017-09-21 16:11:14 -04:00
parent ec0b4b5dc4
commit f68de4d69f
32 changed files with 210 additions and 98 deletions

View File

@@ -76,7 +76,7 @@ public class Input{
Tile cursor = World.cursorTile();
//block breaking
if(Inputs.buttonDown(Buttons.RIGHT) && World.cursorNear() && cursor.breakable()
if(cursor != null && Inputs.buttonDown(Buttons.RIGHT) && World.cursorNear() && cursor.breakable()
&& cursor.block() != ProductionBlocks.core){
Tile tile = cursor;
player.breaktime += Timers.delta();