diff options
Diffstat (limited to 'src')
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); |