Fixed destruction of broken blocks leading to neutral team block

This commit is contained in:
Anuken
2018-11-19 10:20:41 -05:00
parent d1d4f79973
commit 08cf986cae

View File

@@ -42,7 +42,7 @@ public class BuildBlock extends Block{
super(name);
update = true;
size = Integer.parseInt(name.charAt(name.length() - 1) + "");
health = 1;
health = 10;
layer = Layer.placement;
consumesTap = true;
solidifes = true;
@@ -118,15 +118,6 @@ public class BuildBlock extends Block{
}
}
@Override
public void afterDestroyed(Tile tile, TileEntity e){
BuildEntity entity = (BuildEntity) e;
if(entity.previous != null && entity.previous.synthetic()){
tile.setBlock(entity.previous);
}
}
@Override
public void draw(Tile tile){
BuildEntity entity = tile.entity();