Skip to content

Commit

Permalink
Merge pull request #53 from BentoBoxWorld/fixes-onMove-crash
Browse files Browse the repository at this point in the history
Fixes crash when NetherWorld is disabeled
  • Loading branch information
tastybento authored Jun 13, 2023
2 parents a51f506 + ed92e61 commit 3102037
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public void onPortal(PlayerPortalEvent e) {
*/
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
public void onMove(PlayerMoveEvent e) {
if (!Util.sameWorld(e.getPlayer().getWorld(), addon.getNetherWorld())) {
if (!addon.getSettings().isNetherGenerate() || !Util.sameWorld(e.getPlayer().getWorld(), addon.getNetherWorld())) {
return;
}
// Nether fortress advancement
Expand Down

0 comments on commit 3102037

Please sign in to comment.