Build crash fix
This commit is contained in:
@@ -143,11 +143,13 @@ public class BuildBlock extends Block {
|
|||||||
|
|
||||||
@Remote(called = Loc.server, in = In.blocks)
|
@Remote(called = Loc.server, in = In.blocks)
|
||||||
public static void onBuildDeath(Tile tile){
|
public static void onBuildDeath(Tile tile){
|
||||||
|
if(tile.entity == null) return;
|
||||||
tile.entity.damage(tile.entity.health + 1);
|
tile.entity.damage(tile.entity.health + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Remote(called = Loc.server, in = In.blocks)
|
@Remote(called = Loc.server, in = In.blocks)
|
||||||
public static void onBuildFinish(Tile tile, Player lastBuilder){
|
public static void onBuildFinish(Tile tile, Player lastBuilder){
|
||||||
|
if(tile.entity == null) return;
|
||||||
BuildEntity entity = tile.entity();
|
BuildEntity entity = tile.entity();
|
||||||
|
|
||||||
Team team = tile.getTeam();
|
Team team = tile.getTeam();
|
||||||
|
|||||||
Reference in New Issue
Block a user