Fixed crash

This commit is contained in:
Anuken
2018-07-05 17:37:24 -04:00
parent 6b3329845b
commit fa0d89b6df
3 changed files with 5 additions and 2 deletions

View File

@@ -170,7 +170,9 @@ public class TileEntity extends BaseEntity implements TargetTrait {
@Remote(called = Loc.server, in = In.blocks)
public static void onTileDamage(Tile tile, float health){
tile.entity.health = health;
if(tile.entity != null){
tile.entity.health = health;
}
}
@Remote(called = Loc.server, in = In.blocks)