mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-23 19:15:49 +01:00
Potential fix for #743
This commit is contained in:
parent
ad554aea1b
commit
bcaa115f0b
@ -37,7 +37,7 @@ public class NpcEffectThread implements Runnable {
|
|||||||
List<Entity> nearby = player.getNearbyEntities(32.0, 32.0, 32.0);
|
List<Entity> nearby = player.getNearbyEntities(32.0, 32.0, 32.0);
|
||||||
if (nearby.isEmpty() == false) {
|
if (nearby.isEmpty() == false) {
|
||||||
for (Entity e : nearby) {
|
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)) {
|
if (plugin.getDependencies().getCitizens().getNPCRegistry().isNPC(e)) {
|
||||||
NPC npc = plugin.getDependencies().getCitizens().getNPCRegistry().getNPC(e);
|
NPC npc = plugin.getDependencies().getCitizens().getNPCRegistry().getNPC(e);
|
||||||
if (plugin.hasQuest(npc, quester)) {
|
if (plugin.hasQuest(npc, quester)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user