From 1e64b14e06d98a5d6a0dcca92c07739523cdfdc2 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 29 Nov 2011 09:42:09 +1100 Subject: [PATCH] BUKKIT-57 Fix using Bukkit interface instead of nmc Entity for type check. Thanks nidefawl! By: Andrew Ardill --- .../main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 76bc408450..2cf8e8a0e0 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -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