Просмотр исходного кода

Tameable not a part of combat checks at the moment, only wolves

NuclearW 13 лет назад
Родитель
Сommit
0d7c483bd5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/java/com/gmail/nossr50/util/Combat.java

+ 1 - 1
src/main/java/com/gmail/nossr50/util/Combat.java

@@ -148,7 +148,7 @@ public class Combat {
             else if (itemInHand.getType().equals(Material.BONE) && permInstance.beastLore(attacker)) {
                 Taming.beastLore(event, target, attacker);
             }
-        } else if (damager instanceof Tameable) {
+        } else if (damager instanceof Wolf) {
             Wolf wolf = (Wolf) damager;
 
             if (wolf.isTamed() && wolf.getOwner() instanceof Player) {