aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java3
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/InventoryButtons.java8
2 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java b/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java
index dcbc8654..d67b7fb2 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java
@@ -453,7 +453,8 @@ public class RenderListener {
}
public void iterateButtons(GuiContainer gui, BiConsumer<NEUConfig.InventoryButton, Rectangle> acceptButton) {
- if (NEUApi.disableInventoryButtons || EnchantingSolvers.disableButtons() || gui == null) {
+ if (NEUApi.disableInventoryButtons || EnchantingSolvers.disableButtons() || gui == null ||
+ !NotEnoughUpdates.INSTANCE.config.inventoryButtons.enableInventoryButtons) {
return;
}
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/InventoryButtons.java b/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/InventoryButtons.java
index 36289b3f..5d934376 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/InventoryButtons.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/InventoryButtons.java
@@ -29,6 +29,14 @@ import io.github.moulberry.moulconfig.annotations.ConfigOption;
public class InventoryButtons {
@Expose
@ConfigOption(
+ name = "Enable Inventory Buttons",
+ desc = "Quick Toggle to Enable/Disable All Inventory Buttons"
+ )
+ @ConfigEditorBoolean
+ public boolean enableInventoryButtons = true;
+
+ @Expose
+ @ConfigOption(
name = "Open Button Editor",
desc = "Open button editor GUI (/neubuttons)"
)