mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Allow spawning zombies with swords too.
This commit is contained in:
parent
51f554827c
commit
55cee73a48
1 changed files with 10 additions and 6 deletions
|
@ -354,12 +354,8 @@ public class SpawnMob
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == EntityType.SKELETON)
|
if (spawned instanceof Zombie || type == EntityType.SKELETON)
|
||||||
{
|
{
|
||||||
if (data.contains("wither"))
|
|
||||||
{
|
|
||||||
((Skeleton)spawned).setSkeletonType(SkeletonType.WITHER);
|
|
||||||
}
|
|
||||||
if (data.contains("sword"))
|
if (data.contains("sword"))
|
||||||
{
|
{
|
||||||
final EntityEquipment invent = ((LivingEntity)spawned).getEquipment();
|
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 (type == EntityType.EXPERIENCE_ORB)
|
||||||
{
|
{
|
||||||
if (Util.isInt(data))
|
if (Util.isInt(data))
|
||||||
|
|
Loading…
Reference in a new issue