Fix removal of items from Item Frames. Fixes BUKKIT-5736

This commit is contained in:
feildmaster
2014-08-02 16:03:50 -05:00
parent 594d7cb8c9
commit 971329c42b
2 changed files with 7 additions and 3 deletions

View File

@@ -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, false) || this.dead) {
return true;
}
// CraftBukkit end