MUtil equalisish for damage scaler
This commit is contained in:
parent
c485282d60
commit
13d7fb5040
@ -897,7 +897,7 @@ public class MUtil
|
|||||||
if ( ! isFinite(factor)) throw new IllegalStateException("not finite factor: " + factor);
|
if ( ! isFinite(factor)) throw new IllegalStateException("not finite factor: " + factor);
|
||||||
|
|
||||||
// No Change?
|
// No Change?
|
||||||
if (factor == 1) return;
|
if (equalsish(factor, 1)) return;
|
||||||
|
|
||||||
for (DamageModifier modifier : DamageModifier.values())
|
for (DamageModifier modifier : DamageModifier.values())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user