mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 08:27:45 +00:00
Fix Sub Gui Spam Closing
This commit is contained in:
1 parent
ca5461c94f
commit
21e920426e
2 files changed
+4
-2
No files matched your search
@@ -364,8 +364,9 @@ public class GuiAbilityInterface extends GuiNPCInterface2 {
|
||||
|
||||
@Override
|
||||
public void keyTyped(char par1, int par2) {
|
||||
boolean hadSubGui = hasSubGui();
|
||||
super.keyTyped(par1, par2);
|
||||
if (par2 == 1) {
|
||||
if (par2 == 1 && !hadSubGui) {
|
||||
close();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,8 +151,9 @@ public class GuiModelInterface2 extends GuiNPCInterface2 {
|
||||
|
||||
@Override
|
||||
public void keyTyped(char par1, int par2) {
|
||||
boolean hadSubGui = hasSubGui();
|
||||
super.keyTyped(par1, par2);
|
||||
if (par2 == 1) {
|
||||
if (par2 == 1 && !hadSubGui) {
|
||||
close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user