SPIGOT-6075: Snowballs don't destroy Ender Crystals

This commit is contained in:
Parker Hawke 2020-08-17 18:55:38 +10:00 committed by md_5
parent fa917c4723
commit 419018f5d3
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -30,7 +30,7 @@
} else { } else {
if (!this.dead && !this.world.isClientSide) { if (!this.dead && !this.world.isClientSide) {
+ // CraftBukkit start - All non-living entities need this + // CraftBukkit start - All non-living entities need this
+ if (CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f)) { + if (CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f, false)) {
+ return false; + return false;
+ } + }
+ // CraftBukkit end + // CraftBukkit end