aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java
diff options
context:
space:
mode:
authorLulonaut <lulonaut@tutanota.de>2023-05-31 13:23:53 +0200
committerGitHub <noreply@github.com>2023-05-31 13:23:53 +0200
commit623a5c380e466228b7c9d69217ae1766d1533645 (patch)
treebfd1cbffffa5a66b348c5d54e17fbd52f975ef27 /src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java
parent744e7692843c65049e45f666973e1e37adcc7e9a (diff)
downloadnotenoughupdates-623a5c380e466228b7c9d69217ae1766d1533645.tar.gz
notenoughupdates-623a5c380e466228b7c9d69217ae1766d1533645.tar.bz2
notenoughupdates-623a5c380e466228b7c9d69217ae1766d1533645.zip
Only render active overlays in location editor (#694)
only render overlays in location editor when they are enabled
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java b/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java
index b5411dcd..ed98fe45 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2022 NotEnoughUpdates contributors
+ * Copyright (C) 2022-2023 NotEnoughUpdates contributors
*
* This file is part of NotEnoughUpdates.
*
@@ -67,7 +67,6 @@ import io.github.moulberry.notenoughupdates.options.seperateSections.Toolbar;
import io.github.moulberry.notenoughupdates.options.seperateSections.TooltipTweaks;
import io.github.moulberry.notenoughupdates.options.seperateSections.TradeMenu;
import io.github.moulberry.notenoughupdates.options.seperateSections.WardrobeKeybinds;
-import io.github.moulberry.notenoughupdates.options.seperateSections.WorldConfig;
import io.github.moulberry.notenoughupdates.overlays.MiningOverlay;
import io.github.moulberry.notenoughupdates.overlays.OverlayManager;
import io.github.moulberry.notenoughupdates.overlays.TextOverlay;
@@ -94,10 +93,7 @@ public class NEUConfig extends Config {
}
GuiScreen savedGui = Minecraft.getMinecraft().currentScreen;
Minecraft.getMinecraft().displayGuiScreen(new GuiPositionEditor(overlayPositions, () -> {
- }, () -> {
- }, () -> {
- NotEnoughUpdates.INSTANCE.openGui = savedGui;
- }));
+ }, () -> NotEnoughUpdates.INSTANCE.openGui = savedGui));
}
@Override