Fix build

This commit is contained in:
themode 2021-01-06 20:49:31 +01:00
parent f5d550cda9
commit 459e65da72

View File

@ -105,8 +105,6 @@ public class AttributeInstance {
/** /**
* Recalculate the value of this attribute instance using the modifiers. * Recalculate the value of this attribute instance using the modifiers.
*
* @return the attribute value
*/ */
protected void refreshCachedValue() { protected void refreshCachedValue() {
float base = getBaseValue(); float base = getBaseValue();
@ -124,7 +122,6 @@ public class AttributeInstance {
result *= (1.0f + modifier.getAmount()); result *= (1.0f + modifier.getAmount());
} }
final float finalValue = Math.min(result, getAttribute().getMaxValue()); this.cachedValue = Math.min(result, getAttribute().getMaxValue());
this.cachedValue = finalValue;
} }
} }