diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-06-02 00:09:12 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-06-02 00:09:12 +0100 |
commit | 55cee73a48987f4d6a456a02c99c9c8fcdfa0b20 (patch) | |
tree | e6a9a9313f7c32f3bc67ed4b6f5aee7b9b24ec9c | |
parent | 51f554827c08e2013c6754bc9d232bec02a777fc (diff) | |
download | Essentials-55cee73a48987f4d6a456a02c99c9c8fcdfa0b20.tar Essentials-55cee73a48987f4d6a456a02c99c9c8fcdfa0b20.tar.gz Essentials-55cee73a48987f4d6a456a02c99c9c8fcdfa0b20.tar.lz Essentials-55cee73a48987f4d6a456a02c99c9c8fcdfa0b20.tar.xz Essentials-55cee73a48987f4d6a456a02c99c9c8fcdfa0b20.zip |
Allow spawning zombies with swords too.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/SpawnMob.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Essentials/src/com/earth2me/essentials/SpawnMob.java b/Essentials/src/com/earth2me/essentials/SpawnMob.java index f5b6ca5b0..09faef05c 100644 --- a/Essentials/src/com/earth2me/essentials/SpawnMob.java +++ b/Essentials/src/com/earth2me/essentials/SpawnMob.java @@ -353,13 +353,9 @@ public class SpawnMob ((Zombie)spawned).setBaby(true); } } - - if (type == EntityType.SKELETON) + + if (spawned instanceof Zombie || type == EntityType.SKELETON) { - if (data.contains("wither")) - { - ((Skeleton)spawned).setSkeletonType(SkeletonType.WITHER); - } if (data.contains("sword")) { final EntityEquipment invent = ((LivingEntity)spawned).getEquipment(); @@ -383,6 +379,14 @@ public class SpawnMob } } + if (type == EntityType.SKELETON) + { + if (data.contains("wither")) + { + ((Skeleton)spawned).setSkeletonType(SkeletonType.WITHER); + } + } + if (type == EntityType.EXPERIENCE_ORB) { if (Util.isInt(data)) |