diff --git a/src/main/java/noppes/npcs/client/gui/player/inventory/GuiCNPCInventory.java b/src/main/java/noppes/npcs/client/gui/player/inventory/GuiCNPCInventory.java index b39eb51e5..71d505d51 100644 --- a/src/main/java/noppes/npcs/client/gui/player/inventory/GuiCNPCInventory.java +++ b/src/main/java/noppes/npcs/client/gui/player/inventory/GuiCNPCInventory.java @@ -6,6 +6,7 @@ import net.minecraft.util.ResourceLocation; import noppes.npcs.CustomItems; import noppes.npcs.client.gui.util.GuiMenuSideButton; import noppes.npcs.client.gui.util.GuiNPCInterface; +import noppes.npcs.config.ConfigClient; import tconstruct.client.tabs.InventoryTabCustomNpc; import tconstruct.client.tabs.TabRegistry; @@ -39,12 +40,14 @@ public class GuiCNPCInventory extends GuiNPCInterface { partyButton.active = activeTab == 1; partyButton.renderStack = new ItemStack(CustomItems.bag); addButton(partyButton); - - GuiMenuSideButton factionButton = new GuiMenuSideButton(102, guiLeft + xSize + 37, this.guiTop + 3 + 21*2, 22, 22, ""); - factionButton.rightSided = true; - factionButton.active = activeTab == 2; - factionButton.renderStack = new ItemStack(CustomItems.wallBanner); - addButton(factionButton); + + if(ConfigClient.enableFactionTab){ + GuiMenuSideButton factionButton = new GuiMenuSideButton(102, guiLeft + xSize + 37, this.guiTop + 3 + 21*2, 22, 22, ""); + factionButton.rightSided = true; + factionButton.active = activeTab == 2; + factionButton.renderStack = new ItemStack(CustomItems.wallBanner); + addButton(factionButton); + } } @Override diff --git a/src/main/java/noppes/npcs/config/ConfigClient.java b/src/main/java/noppes/npcs/config/ConfigClient.java index 49b952398..8e9312d39 100644 --- a/src/main/java/noppes/npcs/config/ConfigClient.java +++ b/src/main/java/noppes/npcs/config/ConfigClient.java @@ -24,6 +24,9 @@ public class ConfigClient public static Property CacheLifeProperty; public static int CacheLife = 10; + public static Property enableFactionTabProperty; + public static boolean enableFactionTab = true; + /** * Visual Properties **/ @@ -63,6 +66,9 @@ public class ConfigClient CacheLifeProperty = config.get(GENERAL, "Cache Life", 10, "How long should downloaded imagery data be saved client side? (In minutes)"); CacheLife = CacheLifeProperty.getInt(10); + enableFactionTabProperty = config.get(GENERAL, "Enable Faction Tab", true, "Enable the Faction Tab"); + enableFactionTab = enableFactionTabProperty.getBoolean(true); + // Visual EnableChatBubblesProperty = config.get(VISUAL, "Enable Chat Bubbles", true, "Enable/Disable Chat Bubbles"); EnableChatBubbles = EnableChatBubblesProperty.getBoolean(true);