mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
BUKKIT-57 Fix using Bukkit interface instead of nmc Entity for type check.
Thanks nidefawl! By: Andrew Ardill <andrew.ardill@gmail.com>
This commit is contained in:
parent
107149bd07
commit
1e64b14e06
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user