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);
|
super(name);
|
||||||
update = true;
|
update = true;
|
||||||
size = Integer.parseInt(name.charAt(name.length() - 1) + "");
|
size = Integer.parseInt(name.charAt(name.length() - 1) + "");
|
||||||
health = 1;
|
health = 10;
|
||||||
layer = Layer.placement;
|
layer = Layer.placement;
|
||||||
consumesTap = true;
|
consumesTap = true;
|
||||||
solidifes = 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
|
@Override
|
||||||
public void draw(Tile tile){
|
public void draw(Tile tile){
|
||||||
BuildEntity entity = tile.entity();
|
BuildEntity entity = tile.entity();
|
||||||
|
|||||||
Reference in New Issue
Block a user