Potential fix for #743

This commit is contained in:
BuildTools 2019-03-19 12:43:36 -04:00
parent ad554aea1b
commit bcaa115f0b

View File

@ -37,7 +37,7 @@ public class NpcEffectThread implements Runnable {
List<Entity> nearby = player.getNearbyEntities(32.0, 32.0, 32.0);
if (nearby.isEmpty() == false) {
for (Entity e : nearby) {
if (plugin.getDependencies().getCitizens() != null) {
if (plugin.getDependencies().getCitizens() != null && plugin.getDependencies().getCitizens().getNPCRegistry() != null) {
if (plugin.getDependencies().getCitizens().getNPCRegistry().isNPC(e)) {
NPC npc = plugin.getDependencies().getCitizens().getNPCRegistry().getNPC(e);
if (plugin.hasQuest(npc, quester)) {