mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fixed combat exp gain when hitting a friendly wolf
This commit is contained in:
parent
ad68f50b14
commit
29fb8b83c2
@ -69,6 +69,10 @@ public final class CombatTools {
|
||||
return;
|
||||
}
|
||||
|
||||
if (target instanceof Tameable && isFriendlyPet(player, (Tameable) target)) {
|
||||
return;
|
||||
}
|
||||
|
||||
ItemStack heldItem = player.getItemInHand();
|
||||
Material heldItemType = heldItem.getType();
|
||||
DamageCause damageCause = event.getCause();
|
||||
|
Loading…
Reference in New Issue
Block a user