Fixed uncloseable doors, uncolored teleporters

This commit is contained in:
Anuken
2018-02-09 22:23:10 -05:00
parent 3c3a440424
commit ff406027b0
7 changed files with 11 additions and 8 deletions

View File

@@ -189,6 +189,10 @@ public abstract class InputHandler extends InputAdapter{
placeBlockInternal(x, y, result, rotation, effects, sound);
Tile tile = world.tile(x, y);
if(tile != null) result.placed(tile);
if(Net.active() && result != ProductionBlocks.core){
NetEvents.handlePlace(x, y, result, rotation);
}
@@ -225,8 +229,6 @@ public abstract class InputHandler extends InputAdapter{
}
if(effects && sound) Sounds.play("place");
result.placed(tile);
}
public void breakBlock(int x, int y, boolean sound){