mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-29 19:33:51 -07:00
@@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user