Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 04:50:05 +01:00
[Bleeding] Fix checks for non-living entities. Fixes BUKKIT-5667
Dieser Commit ist enthalten in:
Ursprung
9099e48e74
Commit
83e934b3bd
@ -235,7 +235,7 @@ public abstract class EntityFireball extends Entity {
|
|||||||
this.P();
|
this.P();
|
||||||
if (damagesource.getEntity() != null) {
|
if (damagesource.getEntity() != null) {
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
if (!CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f)) {
|
if (CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
@ -24,7 +24,7 @@ public class EntityItemFrame extends EntityHanging {
|
|||||||
} else if (this.getItem() != null) {
|
} else if (this.getItem() != null) {
|
||||||
if (!this.world.isStatic) {
|
if (!this.world.isStatic) {
|
||||||
// CraftBukkit start - fire EntityDamageEvent
|
// CraftBukkit start - fire EntityDamageEvent
|
||||||
if (!org.bukkit.craftbukkit.event.CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f) || this.dead) {
|
if (org.bukkit.craftbukkit.event.CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f) || this.dead) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren