mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2025-01-05 18:37:48 +01:00
Merge pull request #53 from BentoBoxWorld/fixes-onMove-crash
Fixes crash when NetherWorld is disabeled
This commit is contained in:
commit
31020374ac
@ -194,7 +194,7 @@ public class AdvancementListener implements Listener {
|
||||
*/
|
||||
@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
|
||||
|
Loading…
Reference in New Issue
Block a user