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 | 9908eb0619f43a578a0bf496d6f201da7ebcc1a5 (patch) | |
tree | 10056f22d9fca0bd95a6cde6f99d3ae452ca85c3 | |
parent | 64743ef428666e52393ab9248d0e218fc874d19b (diff) | |
download | Essentials-9908eb0619f43a578a0bf496d6f201da7ebcc1a5.tar Essentials-9908eb0619f43a578a0bf496d6f201da7ebcc1a5.tar.gz Essentials-9908eb0619f43a578a0bf496d6f201da7ebcc1a5.tar.lz Essentials-9908eb0619f43a578a0bf496d6f201da7ebcc1a5.tar.xz Essentials-9908eb0619f43a578a0bf496d6f201da7ebcc1a5.zip |
Use Tamed instead of horse/ocelot/wolf
-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; } |