mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 09:37:29 +00:00
Save when Pressing Escape on Console Command
This commit is contained in:
1 parent
7a28d9107c
commit
64fdc9baa8
1 file changed
+8
-1
@@ -41,11 +41,18 @@ public class SubGuiNpcCommand extends SubGuiInterface implements ITextfieldListe
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close(){
|
||||
if(getTextField(4) != null){
|
||||
unFocused(getTextField(4));
|
||||
}
|
||||
super.close();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void unFocused(GuiNpcTextField textfield) {
|
||||
if(textfield.id == 4){
|
||||
command = textfield.getText();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user