diff options
author | syeyoung <cyong06@naver.com> | 2021-08-05 15:02:17 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-08-05 15:02:17 +0900 |
commit | b47ac84df55dd594105f436eb53c49882364e82e (patch) | |
tree | f963aa624eae4d6bd4e6bb8472b13b136c763597 /src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret | |
parent | 36fea310f12486511a1c8f4214125703ae3cb6f4 (diff) | |
download | Skyblock-Dungeons-Guide-b47ac84df55dd594105f436eb53c49882364e82e.tar.gz Skyblock-Dungeons-Guide-b47ac84df55dd594105f436eb53c49882364e82e.tar.bz2 Skyblock-Dungeons-Guide-b47ac84df55dd594105f436eb53c49882364e82e.zip |
- You can disable mechanic browse
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/mechanicbrowser/FeatureMechanicBrowse.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/mechanicbrowser/FeatureMechanicBrowse.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/mechanicbrowser/FeatureMechanicBrowse.java index 1eaaa15f..7b8309ed 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/mechanicbrowser/FeatureMechanicBrowse.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/mechanicbrowser/FeatureMechanicBrowse.java @@ -134,6 +134,7 @@ public class FeatureMechanicBrowse extends GuiFeature implements GuiPreRenderLis @Override public void onMouseInput(GuiScreenEvent.MouseInputEvent.Pre mouseInputEvent) { + if (!isEnabled()) return; try { mGuiMechanicBrowser.handleMouseInput(); } catch (IOException e) { @@ -144,6 +145,7 @@ public class FeatureMechanicBrowse extends GuiFeature implements GuiPreRenderLis @Override public void onGuiPreRender(GuiScreenEvent.DrawScreenEvent.Pre rendered) { + if (!isEnabled()) return; int i = Mouse.getEventX(); int j = Minecraft.getMinecraft().displayHeight - Mouse.getEventY(); mGuiMechanicBrowser.drawScreen(i, j, rendered.renderPartialTicks); |