mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-23 11:05:38 +01:00
Ensure owner of Wolf is not null, fixes #760
This commit is contained in:
parent
3a6637c38c
commit
cc48563c03
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user