Skip to content

Commit

Permalink
Fixed crash on World creation (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Jan 10, 2024
1 parent d001571 commit bffe9d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/electron.renderer/ui/modal/panel/WorldPanel.hx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class WorldPanel extends ui.modal.Panel {
jWrapper.find(".worldBar button.create").click( (_)->{
var w = project.createWorld(true);
editor.selectWorld(w,true);
Notification.success(L.t._("New world created"));
editor.setWorldMode(true);
Notification.success(L.t._("New world created"), w.identifier);
editor.ge.emit( WorldCreated(w) );
});

Expand Down Expand Up @@ -128,7 +127,7 @@ class WorldPanel extends ui.modal.Panel {
updateWorldForm();

case WorldCreated(_), WorldRemoved(_):
updateWorldForm();
// updateWorldForm();

case ProjectSelected:
updateWorldForm();
Expand Down

0 comments on commit bffe9d6

Please sign in to comment.