Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 21:10:17 +01:00
SPIGOT-3649: Backwards check in playEffect
Dieser Commit ist enthalten in:
Ursprung
61e0c69d5f
Commit
adbfc1f98a
@ -440,7 +440,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||||||
public void playEffect(EntityEffect type) {
|
public void playEffect(EntityEffect type) {
|
||||||
Preconditions.checkArgument(type != null, "type");
|
Preconditions.checkArgument(type != null, "type");
|
||||||
|
|
||||||
if (this.getClass().isAssignableFrom(type.getApplicable())) {
|
if (type.getApplicable().isInstance(this)) {
|
||||||
this.getHandle().world.broadcastEntityEffect(getHandle(), type.getData());
|
this.getHandle().world.broadcastEntityEffect(getHandle(), type.getData());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren