diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/ftbsc/bscv/modules/hud/InfoDisplay.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main/java/ftbsc/bscv/modules/hud/InfoDisplay.java b/src/main/java/ftbsc/bscv/modules/hud/InfoDisplay.java index 2df6b10..6553e94 100644 --- a/src/main/java/ftbsc/bscv/modules/hud/InfoDisplay.java +++ b/src/main/java/ftbsc/bscv/modules/hud/InfoDisplay.java @@ -175,10 +175,13 @@ public class InfoDisplay extends HudModule { @SubscribeEvent public void onRenderOverlay(RenderGameOverlayEvent event) { - if (event.getType() == ElementType.POTION_ICONS) { - if (this.hide_effects.get() && event.isCancelable()) { - event.setCanceled(true); - } + if ( + event.getType() == ElementType.POTION_ICONS + && MC.screen == null + && this.hide_effects.get() + && event.isCancelable() + ) { + event.setCanceled(true); } if (event.getType() != ElementType.TEXT) return; |