Save when Pressing Escape on Console Command

This commit is contained in:
Kam committed 2025-01-22 12:14:04 -05:00
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();
}
}
}