mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (target instanceof Tameable && isFriendlyPet(player, (Tameable) target)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ItemStack heldItem = player.getItemInHand();
|
ItemStack heldItem = player.getItemInHand();
|
||||||
Material heldItemType = heldItem.getType();
|
Material heldItemType = heldItem.getType();
|
||||||
DamageCause damageCause = event.getCause();
|
DamageCause damageCause = event.getCause();
|
||||||
|
Loading…
Reference in New Issue
Block a user