mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 03:07:34 +00:00
Fix Close on ESC Outline and Tag Select
This commit is contained in:
1 parent
3d1a0b5418
commit
b05a028137
1 file changed
+5
@@ -38,6 +38,7 @@ public class SubGuiTagSelect extends SubGuiInterface implements IScrollData, ICu
|
||||
public SubGuiTagSelect(HashSet<UUID> tagUUIDs) {
|
||||
this.tagUUIDs = tagUUIDs;
|
||||
setBackground("menubg.png");
|
||||
closeOnEsc = true;
|
||||
xSize = 430;
|
||||
ySize = 220;
|
||||
|
||||
@@ -142,6 +143,10 @@ public class SubGuiTagSelect extends SubGuiInterface implements IScrollData, ICu
|
||||
}
|
||||
|
||||
public void keyTyped(char c, int i) {
|
||||
if (i == 1) {
|
||||
close();
|
||||
return;
|
||||
}
|
||||
super.keyTyped(c, i);
|
||||
if (getTextField(4) != null) {
|
||||
if (search.equals(getTextField(4).getText()))
|
||||
|
||||
Reference in new issue
Block a user