Added allowRectanglePlacement for 1x1 blocks
This commit is contained in:
@@ -83,7 +83,7 @@ public class ConstructBlock extends Block{
|
||||
tile.setBlock(block, team, rotation);
|
||||
}
|
||||
|
||||
if(tile.build != null){
|
||||
if(tile.build != null && tile.build.block == block){
|
||||
tile.build.health = block.health * healthf;
|
||||
|
||||
if(config != null){
|
||||
@@ -100,11 +100,11 @@ public class ConstructBlock extends Block{
|
||||
|
||||
//make sure block indexer knows it's damaged
|
||||
indexer.notifyHealthChanged(tile.build);
|
||||
}
|
||||
|
||||
//last builder was this local client player, call placed()
|
||||
if(tile.build != null && !headless && builder == player.unit()){
|
||||
tile.build.playerPlaced(config);
|
||||
//last builder was this local client player, call placed()
|
||||
if(!headless && builder == player.unit()){
|
||||
tile.build.playerPlaced(config);
|
||||
}
|
||||
}
|
||||
|
||||
if(fogControl.isVisibleTile(team, tile.x, tile.y)){
|
||||
|
||||
@@ -90,6 +90,8 @@ public class Floor extends Block{
|
||||
super(name);
|
||||
this.variants = variants;
|
||||
placeableLiquid = true;
|
||||
allowRectanglePlacement = true;
|
||||
instantBuild = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -20,6 +20,8 @@ public class StaticWall extends Prop{
|
||||
solid = true;
|
||||
variants = 2;
|
||||
cacheLayer = CacheLayer.walls;
|
||||
allowRectanglePlacement = true;
|
||||
instantBuild = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user