Ensure owner of Wolf is not null, fixes #760

This commit is contained in:
BuildTools 2019-04-04 16:29:49 -04:00
parent 3a6637c38c
commit cc48563c03

View File

@ -542,7 +542,7 @@ public class PlayerListener implements Listener {
}
} else if (damager instanceof Wolf) {
Wolf wolf = (Wolf) damager;
if (wolf.isTamed()) {
if (wolf.isTamed() && wolf.getOwner() != null) {
Quester quester = plugin.getQuester(wolf.getOwner().getUniqueId());
killPlayer(quester.getPlayer(), evt.getEntity());
}