Update BuildBlock.java
This commit is contained in:
@@ -61,9 +61,9 @@ public class BuildBlock extends Block{
|
|||||||
if(tile == null) return;
|
if(tile == null) return;
|
||||||
float healthf = tile.build == null ? 1f : tile.build.healthf();
|
float healthf = tile.build == null ? 1f : tile.build.healthf();
|
||||||
tile.setBlock(block, team, rotation);
|
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()
|
//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){
|
if(!skipConfig){
|
||||||
tile.build.playerPlaced();
|
tile.build.playerPlaced();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user