mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2024-09-27 04:02:34 +02: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)
|
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
||||||
public void onMove(PlayerMoveEvent e) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
// Nether fortress advancement
|
// Nether fortress advancement
|
||||||
|
Loading…
Reference in New Issue
Block a user