Skip to content

Commit

Permalink
Add defensive code for null to's #131
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jul 31, 2024
1 parent 4a6f56f commit 2a2d9d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void onPlayerTeleport(PlayerTeleportEvent e) {

show.clearUser(User.getInstance(player));

if (!addon.inGameWorld(to.getWorld())) {
if (to == null || !addon.inGameWorld(to.getWorld())) {
return;
}

Expand Down

0 comments on commit 2a2d9d3

Please sign in to comment.