SPIGOT-6442: Do not cancel zero damage on fireballs

This commit is contained in:
Julian van den Berkmortel 2021-04-30 17:53:58 +10:00 committed by md_5
parent f3ed1ac1dc
commit 6f55b5b888
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -47,7 +47,7 @@
if (entity != null) { if (entity != null) {
+ // CraftBukkit start + // CraftBukkit start
+ if (CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f)) { + if (CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f, false)) {
+ return false; + return false;
+ } + }
+ // CraftBukkit end + // CraftBukkit end