fix: only hide effects when no gui is shown
This commit is contained in:
parent
2893438f64
commit
57dd48049d
1 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue