mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Additional fireworks damage tracking.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
64b9c40cd7
commit
a272470d6f
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue