From a742ea4d1c1dc749c169fb948eaaa810922f4bd6 Mon Sep 17 00:00:00 2001 From: Integer Limit <103940576+IntegerLimit@users.noreply.github.com> Date: Sun, 4 Aug 2024 17:20:29 +1000 Subject: [PATCH] Fix GrS Hand Additions Config --- src/main/java/com/nomiceu/nomilabs/config/LabsConfig.java | 6 +++--- src/main/java/com/nomiceu/nomilabs/event/CommonProxy.java | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/nomiceu/nomilabs/config/LabsConfig.java b/src/main/java/com/nomiceu/nomilabs/config/LabsConfig.java index da062d78..16936886 100644 --- a/src/main/java/com/nomiceu/nomilabs/config/LabsConfig.java +++ b/src/main/java/com/nomiceu/nomilabs/config/LabsConfig.java @@ -146,10 +146,10 @@ public static class GTCustomContent { public static class GroovyScriptSettings { - @Config.Comment({ "Whether to enable GroovyScript Hand Additions.", - "[default: true]" }) + @Config.Comment({ "Whether to enable Labs' GroovyScript Hand Additions.", + "[default: false]" }) @Config.LangKey("config.nomilabs.groovy.hand") - public boolean enableGroovyHandAdditions = true; + public boolean enableGroovyHandAdditions = false; @Config.Comment({ "Mode to Use for GT Recipe Output Searching.", "'LINEAR_SEARCH' browses each recipe sequentially, 'FAST_TREE' navigates a tree structure and stops at the first match, while 'TREE' explores the entire tree structure before concluding.", diff --git a/src/main/java/com/nomiceu/nomilabs/event/CommonProxy.java b/src/main/java/com/nomiceu/nomilabs/event/CommonProxy.java index de48a1cc..c7e5f35a 100644 --- a/src/main/java/com/nomiceu/nomilabs/event/CommonProxy.java +++ b/src/main/java/com/nomiceu/nomilabs/event/CommonProxy.java @@ -195,7 +195,8 @@ public static void missingBiomeMappings(MissingMappings event) { @SubscribeEvent(priority = EventPriority.LOW) public static void gsHandAdditions(GsHandEvent event) { - GroovyScriptHandManager.addToHand(event); + if (LabsConfig.groovyScriptSettings.enableGroovyHandAdditions) + GroovyScriptHandManager.addToHand(event); } @SubscribeEvent