Crash fix / Cleanup

This commit is contained in:
Anuken
2018-09-03 17:04:11 -04:00
parent e0a94f694b
commit 6c5eff1143
6 changed files with 6 additions and 88 deletions
@@ -255,9 +255,9 @@ public class TileEntity extends BaseEntity implements TargetTrait, HealthTrait{
if(health <= 0){
onDeath();
}
Block previous = tile.block();
tile.block().update(tile);
if(cons != null){
if(tile.block() == previous && cons != null){
cons.update(this);
}
}