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 {
if (!this.dead && !this.world.isClientSide) {
+ // CraftBukkit start - All non-living entities need this
+ if (CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f)) {
+ if (CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f, false)) {
+ return false;
+ }
+ // CraftBukkit end