Skip to content

Commit

Permalink
Change fallback location to the ProtectionCenter.
Browse files Browse the repository at this point in the history
Protection center may be different than island center.
  • Loading branch information
BONNe committed Feb 20, 2021
1 parent 8a480d2 commit ebc6a3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ else if (earnedMoney > 0 &&
// bad spot.
new SafeSpotTeleport.Builder(this.addon.getPlugin()).
entity(user.getPlayer()).
location(location == null ? island.getCenter() : location).
location(location == null ? island.getProtectionCenter() : location).
failureMessage(user.getTranslation("general.errors.no-safe-location-found")).
build();
}
Expand Down

0 comments on commit ebc6a3e

Please sign in to comment.