mirror of
https://github.com/PikaMug/Quests.git
synced 2025-03-02 11:31:10 +01:00
Citizens NPC location must not be null, fixes #2332
This commit is contained in:
parent
56f1a2e4d7
commit
da367f3b67
@ -60,7 +60,7 @@ public class BukkitCitizensDependency implements BukkitNpcDependency, BukkitEnti
|
||||
for (final NPC npc : citizens.getNPCRegistry()) {
|
||||
final UUID uuid = npc.getUniqueId();
|
||||
final Location location = npc.getStoredLocation();
|
||||
if (location.getWorld() == null) {
|
||||
if (location == null || location.getWorld() == null) {
|
||||
continue;
|
||||
}
|
||||
if (predicate.test(uuid, location)) {
|
||||
|
Loading…
Reference in New Issue
Block a user