[Bleeding] Ensure skeletons spawn with equipment. Fixes BUKKIT-2836

Previously, when a skeleton was spawned via the spawn(...) function, the
resulting skeleton had no equipped bow and therefore could not properly
attack. This fix gives all skeletons the proper equipment and ensures that
they are able to attack.
Dieser Commit ist enthalten in:
GJ 2014-02-11 22:22:39 -05:00 committet von Travis Watkins
Ursprung 81e560621f
Commit ec41228fb5

Datei anzeigen

@ -1032,6 +1032,10 @@ public class CraftWorld implements World {
}
if (entity != null) {
if (entity instanceof EntityInsentient) {
((EntityInsentient) entity).a((GroupDataEntity) null); // Should be prepare?
}
world.addEntity(entity, reason);
return (T) entity.getBukkitEntity();
}