mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-22 07:11:45 +01:00
Check for null world in spawn
This commit is contained in:
parent
4346ed0b19
commit
0d5d5c4ac6
@ -191,6 +191,10 @@ public class CitizensNPC extends AbstractNPC {
|
||||
Messaging.debug("Tried to spawn", getId(), "while already spawned.");
|
||||
return false;
|
||||
}
|
||||
if (at.getWorld() == null) {
|
||||
Messaging.debug("Tried to spawn", getId(), "but the world was null.");
|
||||
return false;
|
||||
}
|
||||
data().get(NPC.DEFAULT_PROTECTED_METADATA, true);
|
||||
|
||||
at = at.clone();
|
||||
|
Loading…
Reference in New Issue
Block a user