mirror of
https://github.com/seppukudevelopment/seppuku
synced 2025-01-13 18:45:40 +00:00
Fixed a bug where you couldn't use ESC in the HudEditor GUI
This commit is contained in:
parent
6aa1a23c98
commit
815665536a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user