修复mod的防护类功能失效并且导致护甲直接失效的bug
This commit is contained in:
parent
75ee4d8b54
commit
060d7a1bc2
@ -420,10 +420,10 @@
|
|||||||
- p_70665_2_ = Math.max(p_70665_2_ - this.getAbsorptionAmount(), 0.0F);
|
- p_70665_2_ = Math.max(p_70665_2_ - this.getAbsorptionAmount(), 0.0F);
|
||||||
- this.setAbsorptionAmount(this.getAbsorptionAmount() - (f1 - p_70665_2_));
|
- this.setAbsorptionAmount(this.getAbsorptionAmount() - (f1 - p_70665_2_));
|
||||||
+ final boolean human = this instanceof EntityPlayer;
|
+ final boolean human = this instanceof EntityPlayer;
|
||||||
+ float originalDamage = f;
|
|
||||||
+ // Cauldron start - apply forge damage hook
|
+ // Cauldron start - apply forge damage hook
|
||||||
+ f = ForgeHooks.onLivingHurt(this, damagesource, f);
|
+ f = ForgeHooks.onLivingHurt(this, damagesource, f);
|
||||||
+ if (f < 0) return true;
|
+ if (f < 0) return true;
|
||||||
|
+ float originalDamage = f;
|
||||||
+ // Cauldron end
|
+ // Cauldron end
|
||||||
+ Function<Double, Double> hardHat = new Function<Double, Double>() {
|
+ Function<Double, Double> hardHat = new Function<Double, Double>() {
|
||||||
+ @Override
|
+ @Override
|
||||||
|
Loading…
Reference in New Issue
Block a user