mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2025-03-18 14:29:23 +01:00
Fixes crash when NetherWorld is disabeled
Utils#sameWorld is not null-safe. Add a check if nether world is enabled before running the other checks.
This commit is contained in:
parent
a51f5068e4
commit
ed92e61cc5
@ -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