[Bleeding] Fix checks for non-living entities. Fixes BUKKIT-5667

This commit is contained in:
t00thpick1 authored and Travis Watkins committed 2014-06-24 18:24:29 -05:00
1 parent 9099e48e74
commit 83e934b3bd
2 files changed
+2 -2

No files matched your search

@@ -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