Added hiddenBuildItems rule

This commit is contained in:
Anuken
2021-10-20 16:25:24 -04:00
parent 085a974350
commit 699364580e
3 changed files with 5 additions and 3 deletions

View File

@@ -445,7 +445,7 @@ public class PlacementFragment extends Fragment{
}
boolean unlocked(Block block){
return block.unlockedNow() && block.placeablePlayer;
return block.unlockedNow() && block.placeablePlayer && (state.rules.hiddenBuildItems.isEmpty() || !Structs.contains(block.requirements, i -> state.rules.hiddenBuildItems.contains(i.item)));
}
boolean hasInfoBox(){