diff options
author | Pocketkid2 <afranklint16@gmail.com> | 2013-08-20 15:15:28 -0700 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-08-31 19:36:41 +0100 |
commit | 8a7cb777d013800f883db345cd41e94c7ac06430 (patch) | |
tree | eb4ea67b337a00d6086a6abf9c8b503b27746311 /Essentials | |
parent | 13436732d0c3bbfb7767a2bfb79a0cd4e8623036 (diff) | |
download | Essentials-8a7cb777d013800f883db345cd41e94c7ac06430.tar Essentials-8a7cb777d013800f883db345cd41e94c7ac06430.tar.gz Essentials-8a7cb777d013800f883db345cd41e94c7ac06430.tar.lz Essentials-8a7cb777d013800f883db345cd41e94c7ac06430.tar.xz Essentials-8a7cb777d013800f883db345cd41e94c7ac06430.zip |
Use Tamed instead of horse/ocelot/wolf
Diffstat (limited to 'Essentials')
-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; } |