Skip to content

Commit

Permalink
131 null to location (#132)
Browse files Browse the repository at this point in the history
* Version 4.3.1

* Add defensive code for null to's #131
  • Loading branch information
tastybento authored Jul 31, 2024
1 parent aa8806a commit b0abf59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
<!-- This allows to change between versions and snapshots. -->
<build.version>4.3.0</build.version>
<build.version>4.3.1</build.version>
<build.number>-LOCAL</build.number>
<!-- Sonar Cloud -->
<sonar.projectKey>BentoBoxWorld_Border</sonar.projectKey>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,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 b0abf59

Please sign in to comment.