Hidden blocks only in the Placement UI (#5806)

* placeablePlayer

* placeablePlayer unlocked
This commit is contained in:
Sunny Kim
2021-08-21 11:29:16 -04:00
committed by GitHub
parent 92d3d3cd9c
commit ec1afdfdc4
2 changed files with 3 additions and 1 deletions
@@ -443,7 +443,7 @@ public class PlacementFragment extends Fragment{
}
boolean unlocked(Block block){
return block.unlockedNow();
return block.unlockedNow() && block.placeablePlayer;
}
boolean hasInfoBox(){
+2
View File
@@ -100,6 +100,8 @@ public class Block extends UnlockableContent{
public boolean requiresWater = false;
/** whether this block can be placed on any liquids, anywhere */
public boolean placeableLiquid = false;
/** whether this block can be placed directly by the player via PlacementFragment */
public boolean placeablePlayer = true;
/** whether this floor can be placed on. */
public boolean placeableOn = true;
/** whether this block has insulating properties. */