Using this code until Bukkit fixes spawnCreature()

This commit is contained in:
snowleo 2011-11-29 19:24:54 +01:00
parent 0b2a3fcf7f
commit aed160b5fc

View file

@ -76,8 +76,7 @@ public enum Mob
public LivingEntity spawn(final Player player, final Server server, final Location loc) throws MobException public LivingEntity spawn(final Player player, final Server server, final Location loc) throws MobException
{ {
final LivingEntity entity = player.getWorld().spawn(loc, (Class<? extends LivingEntity>)this.bukkitType.getEntityClass());
final LivingEntity entity = player.getWorld().spawnCreature(loc, this.bukkitType);
if (entity == null) if (entity == null)
{ {
logger.log(Level.WARNING, _("unableToSpawnMob")); logger.log(Level.WARNING, _("unableToSpawnMob"));