BUKKIT-57 Fix using Bukkit interface instead of nmc Entity for type check.

Thanks nidefawl!
This commit is contained in:
Andrew Ardill
2011-11-29 09:42:09 +11:00
parent 7db72dfd2c
commit 89338db181
2 changed files with 253 additions and 1 deletions

View File

@@ -81,7 +81,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
}
// Slimes are a special (and broken) case
else if (entity instanceof EntitySlime) {
if (entity instanceof MagmaCube) { return new CraftMagmaCube(server, (EntityLavaSlime) entity); }
if (entity instanceof EntityLavaSlime) { return new CraftMagmaCube(server, (EntityLavaSlime) entity); }
else { return new CraftSlime(server, (EntitySlime) entity); }
}
// Flying