mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
SPIGOT-2427: Fix missed diff in armor damage handling
By: md_5 <git@md-5.net>
This commit is contained in:
parent
4d977ad06a
commit
a63680b107
1 changed files with 2 additions and 4 deletions
|
@ -345,17 +345,15 @@
|
||||||
int j = MathHelper.floor(this.locX);
|
int j = MathHelper.floor(this.locX);
|
||||||
int k = MathHelper.floor(this.locY - 0.20000000298023224D);
|
int k = MathHelper.floor(this.locY - 0.20000000298023224D);
|
||||||
int l = MathHelper.floor(this.locZ);
|
int l = MathHelper.floor(this.locZ);
|
||||||
@@ -972,8 +1122,8 @@
|
@@ -972,7 +1122,7 @@
|
||||||
|
|
||||||
protected float applyArmorModifier(DamageSource damagesource, float f) {
|
protected float applyArmorModifier(DamageSource damagesource, float f) {
|
||||||
if (!damagesource.ignoresArmor()) {
|
if (!damagesource.ignoresArmor()) {
|
||||||
- this.damageArmor(f);
|
- this.damageArmor(f);
|
||||||
- f = CombatMath.a(f, (float) this.getArmorStrength(), (float) this.getAttributeInstance(GenericAttributes.h).getValue());
|
|
||||||
+ // this.damageArmor(f); // CraftBukkit - Moved into damageEntity0(DamageSource, float)
|
+ // this.damageArmor(f); // CraftBukkit - Moved into damageEntity0(DamageSource, float)
|
||||||
+ f = CombatMath.a(f, (float) this.getArmorStrength());
|
f = CombatMath.a(f, (float) this.getArmorStrength(), (float) this.getAttributeInstance(GenericAttributes.h).getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
return f;
|
|
||||||
@@ -985,7 +1135,8 @@
|
@@ -985,7 +1135,8 @@
|
||||||
} else {
|
} else {
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in a new issue