Fixed a bug where you couldn't use ESC in the HudEditor GUI

This commit is contained in:
Rigamortis 2019-12-29 16:19:31 -09:00
parent 6aa1a23c98
commit 815665536a
1 changed files with 0 additions and 11 deletions

View File

@ -1,13 +1,11 @@
package me.rigamortis.seppuku.impl.module.ui;
import me.rigamortis.seppuku.api.event.minecraft.EventDisplayGui;
import me.rigamortis.seppuku.api.module.Module;
import me.rigamortis.seppuku.api.value.Value;
import me.rigamortis.seppuku.impl.gui.hud.GuiHudEditor;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.util.ResourceLocation;
import team.stiff.pomelo.impl.annotated.handler.annotation.Listener;
/**
* Author Seth
@ -42,15 +40,6 @@ public final class HudEditorModule extends Module {
}
}
@Listener
public void displayGui(EventDisplayGui event) {
if (Minecraft.getMinecraft().currentScreen instanceof GuiHudEditor) {
if (event.getScreen() == null && this.open) {
event.setCanceled(true);
}
}
}
public boolean isOpen() {
return open;
}