diff options
author | syeyoung <cyougn06@naver.com> | 2021-12-23 14:37:34 +0900 |
---|---|---|
committer | syeyoung <cyougn06@naver.com> | 2021-12-23 14:37:34 +0900 |
commit | 675907ba9fe38e84bddf2b71413e951e18313a4e (patch) | |
tree | f2950b6a10bdf299c38a0a5264e642b13868ac8f /src/main/java/kr/syeyoung/dungeonsguide | |
parent | ef92a621e5a5033677fe7c372bbdbebdf7d58396 (diff) | |
download | Skyblock-Dungeons-Guide-675907ba9fe38e84bddf2b71413e951e18313a4e.tar.gz Skyblock-Dungeons-Guide-675907ba9fe38e84bddf2b71413e951e18313a4e.tar.bz2 Skyblock-Dungeons-Guide-675907ba9fe38e84bddf2b71413e951e18313a4e.zip |
- Fix Discord alarms appearing while feature is disabled
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide')
2 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/discord/inviteViewer/PartyInviteViewer.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/discord/inviteViewer/PartyInviteViewer.java index 6676eae2..551659d2 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/discord/inviteViewer/PartyInviteViewer.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/discord/inviteViewer/PartyInviteViewer.java @@ -62,6 +62,7 @@ public class PartyInviteViewer extends SimpleFeature implements GuiPostRenderLis @Override public void drawScreen(float partialTicks) { + if (!isEnabled()) return; try { renderRequests(false); } catch (Throwable t) { @@ -93,6 +94,7 @@ public class PartyInviteViewer extends SimpleFeature implements GuiPostRenderLis @Override public void onMouseInput(GuiScreenEvent.MouseInputEvent.Pre mouseInputEvent) { + if (!isEnabled()) return; int mouseX = Mouse.getX(); int mouseY = Minecraft.getMinecraft().displayHeight - Mouse.getY() +3; for (PartyJoinRequest joinRequest:joinRequests) { diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/discord/onlinealarm/PlayingDGAlarm.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/discord/onlinealarm/PlayingDGAlarm.java index 4f071e51..95eed5a2 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/discord/onlinealarm/PlayingDGAlarm.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/discord/onlinealarm/PlayingDGAlarm.java @@ -73,6 +73,7 @@ public class PlayingDGAlarm extends SimpleFeature implements DiscordUserUpdateLi @Override public void drawScreen(float partialTicks) { + if (!isEnabled()) return; try { GlStateManager.pushMatrix(); GlStateManager.translate(0,0,100); |