Hidden blocks only in the Placement UI (#5806)
* placeablePlayer * placeablePlayer unlocked
This commit is contained in:
@@ -443,7 +443,7 @@ public class PlacementFragment extends Fragment{
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean unlocked(Block block){
|
boolean unlocked(Block block){
|
||||||
return block.unlockedNow();
|
return block.unlockedNow() && block.placeablePlayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean hasInfoBox(){
|
boolean hasInfoBox(){
|
||||||
|
|||||||
@@ -100,6 +100,8 @@ public class Block extends UnlockableContent{
|
|||||||
public boolean requiresWater = false;
|
public boolean requiresWater = false;
|
||||||
/** whether this block can be placed on any liquids, anywhere */
|
/** whether this block can be placed on any liquids, anywhere */
|
||||||
public boolean placeableLiquid = false;
|
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. */
|
/** whether this floor can be placed on. */
|
||||||
public boolean placeableOn = true;
|
public boolean placeableOn = true;
|
||||||
/** whether this block has insulating properties. */
|
/** whether this block has insulating properties. */
|
||||||
|
|||||||
Reference in New Issue
Block a user