From a272470d6f86aeaff1a2793ae1a1d5590060e363 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 23 Dec 2016 22:32:40 +1100 Subject: [PATCH] Additional fireworks damage tracking. By: md_5 --- paper-server/nms-patches/EntityFireworks.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-server/nms-patches/EntityFireworks.patch b/paper-server/nms-patches/EntityFireworks.patch index af6bba54a8..99fc74ae34 100644 --- a/paper-server/nms-patches/EntityFireworks.patch +++ b/paper-server/nms-patches/EntityFireworks.patch @@ -33,3 +33,13 @@ } double d0 = 5.0D; +@@ -162,7 +169,9 @@ + if (flag) { + float f1 = f * (float) Math.sqrt((5.0D - (double) this.g(entityliving)) / 5.0D); + ++ CraftEventFactory.entityDamage = this; // CraftBukkit + entityliving.damageEntity(DamageSource.t, f1); ++ CraftEventFactory.entityDamage = null; // CraftBukkit + } + } + }