summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPocketkid2 <afranklint16@gmail.com>2013-08-20 15:15:28 -0700
committerKHobbits <rob@khobbits.co.uk>2013-08-31 19:36:41 +0100
commit9908eb0619f43a578a0bf496d6f201da7ebcc1a5 (patch)
tree10056f22d9fca0bd95a6cde6f99d3ae452ca85c3
parent64743ef428666e52393ab9248d0e218fc874d19b (diff)
downloadEssentials-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.java18
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;
}