diff options
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandkillall.java | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandkillall.java b/Essentials/src/com/earth2me/essentials/commands/Commandkillall.java index f9e6a6e0f..014d4d4e9 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandkillall.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandkillall.java @@ -107,23 +107,9 @@ public class Commandkillall extends EssentialsCommand { continue; } - if (entity instanceof Wolf) + if (entity instanceof Tameable) { - if (((Wolf)entity).isTamed()) - { - continue; - } - } - if (entity instanceof Ocelot) - { - if (((Ocelot)entity).isTamed()) - { - continue; - } - } - if (entity instanceof Horse) - { - if (((Horse)entity).isTamed()) + if (((Tameable)entity).isTamed()) { continue; } |