mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-03 06:01:30 +01:00
Fix NPE
This commit is contained in:
parent
61bed8e72d
commit
25be687762
@ -75,7 +75,7 @@ public class MVEntityListener extends EntityListener {
|
||||
Player player = (Player) defender;
|
||||
World w = player.getWorld();
|
||||
|
||||
if (!this.worldManager.isMVWorld(w.getName())) {
|
||||
if (w == null || !this.worldManager.isMVWorld(w.getName())) {
|
||||
// if the world is not handled, we don't care
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user