Skip to content

Commit

Permalink
Fixed NPE issue when right-clicking on the main menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
HackusatePvP committed Jun 14, 2024
1 parent bb3a456 commit 06c416a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public void onMouseClick(MouseClickEvent event) {
} else {
// Return to previous screen
RenScene renScene = player.getCurrentScene();
if (renScene == null) return;
Menu menu = renScene.build(true);
SceneBuildEvent sceneBuildEvent = new SceneBuildEvent(renScene, menu);
RenJava.callEvent(sceneBuildEvent);
Expand Down

0 comments on commit 06c416a

Please sign in to comment.