diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 7739a3e4..27ae8475 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -440,7 +440,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity { public void playEffect(EntityEffect type) { Preconditions.checkArgument(type != null, "type"); - if (this.getClass().isAssignableFrom(type.getApplicable())) { + if (type.getApplicable().isInstance(this)) { this.getHandle().world.broadcastEntityEffect(getHandle(), type.getData()); } } |