MUtil equalisish for damage scaler

This commit is contained in:
Olof Larsson 2016-05-24 09:15:45 +02:00
parent c485282d60
commit 13d7fb5040
No known key found for this signature in database
GPG Key ID: BBEF14F97DA52474

View File

@ -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())
{ {