diff --git a/core/src/mindustry/world/blocks/BuildBlock.java b/core/src/mindustry/world/blocks/BuildBlock.java index e16f01aad2..36f715df5e 100644 --- a/core/src/mindustry/world/blocks/BuildBlock.java +++ b/core/src/mindustry/world/blocks/BuildBlock.java @@ -61,9 +61,9 @@ public class BuildBlock extends Block{ if(tile == null) return; float healthf = tile.build == null ? 1f : tile.build.healthf(); tile.setBlock(block, team, rotation); - tile.build.health = block.health * healthf; + if(tile.build != null) tile.build.health = block.health * healthf; //last builder was this local client player, call placed() - if(!headless && builderID == player.unit().id()){ + if(tile.build != null && !headless && builderID == player.unit().id()){ if(!skipConfig){ tile.build.playerPlaced(); }