Fixed destruction of broken blocks leading to neutral team block
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user