Added Block#allowConfigInventory

This commit is contained in:
Anuken
2021-09-08 09:04:04 -04:00
parent c98eb2edd7
commit cde192b59a
4 changed files with 6 additions and 2 deletions

View File

@@ -159,6 +159,8 @@ public class Block extends UnlockableContent{
public int unitCapModifier = 0;
/** Whether the block can be tapped and selected to configure. */
public boolean configurable;
/** If true, the building inventory can be shown with the config. */
public boolean allowConfigInventory = true;
/** If true, this block can be configured by logic. */
public boolean logicConfigurable = false;
/** Whether this block consumes touchDown events when tapped. */

View File

@@ -51,6 +51,8 @@ public class ItemBridge extends Block{
group = BlockGroup.transportation;
noUpdateDisabled = true;
copyConfig = false;
//disabled as to not be annoying
allowConfigInventory = false;
//point2 config is relative
config(Point2.class, (ItemBridgeBuild tile, Point2 i) -> tile.link = Point2.pack(i.x + tile.tileX(), i.y + tile.tileY()));