summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-11-29 19:24:54 +0100
committersnowleo <schneeleo@gmail.com>2011-11-29 19:24:54 +0100
commitaed160b5fc88c44d781fa46454d7c16f8174984e (patch)
tree7723695ce7ab3d8f06d2a53f02386588c4bdc327
parent0b2a3fcf7f1a38848d941ed125470c0c547d5fa1 (diff)
downloadEssentials-aed160b5fc88c44d781fa46454d7c16f8174984e.tar
Essentials-aed160b5fc88c44d781fa46454d7c16f8174984e.tar.gz
Essentials-aed160b5fc88c44d781fa46454d7c16f8174984e.tar.lz
Essentials-aed160b5fc88c44d781fa46454d7c16f8174984e.tar.xz
Essentials-aed160b5fc88c44d781fa46454d7c16f8174984e.zip
Using this code until Bukkit fixes spawnCreature()
-rw-r--r--Essentials/src/com/earth2me/essentials/Mob.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Mob.java b/Essentials/src/com/earth2me/essentials/Mob.java
index 5565cde3e..049f7b8a3 100644
--- a/Essentials/src/com/earth2me/essentials/Mob.java
+++ b/Essentials/src/com/earth2me/essentials/Mob.java
@@ -76,8 +76,7 @@ public enum Mob
public LivingEntity spawn(final Player player, final Server server, final Location loc) throws MobException
{
-
- final LivingEntity entity = player.getWorld().spawnCreature(loc, this.bukkitType);
+ final LivingEntity entity = player.getWorld().spawn(loc, (Class<? extends LivingEntity>)this.bukkitType.getEntityClass());
if (entity == null)
{
logger.log(Level.WARNING, _("unableToSpawnMob"));