Skip to content

Commit

Permalink
Disable test overlay by default
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune committed Sep 13, 2024
1 parent 4547d1c commit 0cf7000
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/cleanroommc/modularui/ClientProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ void preInit(FMLPreInitializationEvent event) {

if (ModularUIConfig.enableTestGuis) {
MinecraftForge.EVENT_BUS.register(new EventHandler());
}
if (ModularUIConfig.enableTestOverlays) {
OverlayTest.init();
}

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/cleanroommc/modularui/ModularUIConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ public class ModularUIConfig {
@Config.RequiresMcRestart
@Config.Comment("Enables a test block, test item with a test gui and opening a gui by right clicking a diamond.")
public static boolean enableTestGuis = ModularUI.isDevEnv;

@Config.RequiresMcRestart
@Config.Comment("Enables a test overlay shown on title screen and watermark shown on every GuiContainer.")
public static boolean enableTestOverlays = false;
}

0 comments on commit 0cf7000

Please sign in to comment.