mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
[Bleeding] Fix checks for non-living entities. Fixes BUKKIT-5667
This commit is contained in:
parent
9099e48e74
commit
83e934b3bd
2 changed files with 2 additions and 2 deletions
|
@ -235,7 +235,7 @@ public abstract class EntityFireball extends Entity {
|
|||
this.P();
|
||||
if (damagesource.getEntity() != null) {
|
||||
// CraftBukkit start
|
||||
if (!CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f)) {
|
||||
if (CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f)) {
|
||||
return false;
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
|
|
@ -24,7 +24,7 @@ public class EntityItemFrame extends EntityHanging {
|
|||
} else if (this.getItem() != null) {
|
||||
if (!this.world.isStatic) {
|
||||
// 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;
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
|
Loading…
Add table
Reference in a new issue