mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 11:06:29 +01:00
SPIGOT-3649: Backwards check in playEffect
This commit is contained in:
parent
61e0c69d5f
commit
adbfc1f98a
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user