|
@@ -64,10 +64,6 @@ public final class CombatUtils {
|
|
|
ItemStack heldItem = player.getItemInHand();
|
|
|
|
|
|
if (target instanceof Tameable) {
|
|
|
- if (isFriendlyPet(player, (Tameable) target)) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
if (heldItem.getType() == Material.BONE) {
|
|
|
TamingManager tamingManager = mcMMOPlayer.getTamingManager();
|
|
|
|
|
@@ -77,6 +73,10 @@ public final class CombatUtils {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (isFriendlyPet(player, (Tameable) target)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (ItemUtils.isSword(heldItem)) {
|