Skip to content

Commit

Permalink
Fix GrS Hand Additions Config
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Aug 4, 2024
1 parent 69062f2 commit a742ea4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/nomiceu/nomilabs/config/LabsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/nomiceu/nomilabs/event/CommonProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ public static void missingBiomeMappings(MissingMappings<Biome> event) {

@SubscribeEvent(priority = EventPriority.LOW)
public static void gsHandAdditions(GsHandEvent event) {
GroovyScriptHandManager.addToHand(event);
if (LabsConfig.groovyScriptSettings.enableGroovyHandAdditions)
GroovyScriptHandManager.addToHand(event);
}

@SubscribeEvent
Expand Down

0 comments on commit a742ea4

Please sign in to comment.