Potential fix for #763

This commit is contained in:
PikaMug 2019-04-07 12:02:34 -04:00
parent a5a9c7fedd
commit 1ec33b49cb

View File

@ -793,7 +793,7 @@ public class PlayerListener implements Listener {
if (evt.getFrom().getBlock().equals(evt.getTo().getBlock())) {
return;
}
if (plugin.getDependencies().getCitizens() != null) {
if (plugin.getDependencies().getCitizens() != null && CitizensAPI.getNPCRegistry() != null) {
if (CitizensAPI.getNPCRegistry().isNPC(evt.getPlayer())) {
return;
}