Check the world in openCommand before opening it.

fixes #1372
This commit is contained in:
IntegratedQuantum 2025-04-30 16:40:19 +02:00
parent af52b392f6
commit e2a65d21d1

View File

@ -303,6 +303,7 @@ fn openChat() void {
gui.windowlist.chat.input.select();
}
fn openCommand() void {
if(game.world == null) return;
openChat();
gui.windowlist.chat.input.clear();
gui.windowlist.chat.input.inputCharacter('/');