Everything has been broken

This commit is contained in:
Anuken
2018-03-17 12:22:21 -04:00
parent ba84bb82b4
commit 713875100b
22 changed files with 78 additions and 112 deletions

View File

@@ -91,7 +91,7 @@ public abstract class InputHandler extends InputAdapter{
return false;
}
return Placement.validPlace(x, y, type);
return Placement.validPlace(player.team, x, y, type);
}
public boolean validBreak(int x, int y){
@@ -111,12 +111,12 @@ public abstract class InputHandler extends InputAdapter{
}
}
return Placement.validBreak(x, y);
return Placement.validBreak(player.team, x, y);
}
public void placeBlock(int x, int y, Block result, int rotation, boolean effects, boolean sound){
if(!Net.client()){
Placement.placeBlock(x, y, result, rotation, effects, sound);
Placement.placeBlock(player.team, x, y, result, rotation, effects, sound);
Tile tile = world.tile(x, y);
if(tile != null) result.placed(tile);
}
@@ -127,7 +127,7 @@ public abstract class InputHandler extends InputAdapter{
}
public void breakBlock(int x, int y, boolean sound){
if(!Net.client()) Placement.breakBlock(x, y, true, sound);
if(!Net.client()) Placement.breakBlock(player.team, x, y, true, sound);
if(Net.active()){
NetEvents.handleBreak(x, y);