Skip to content

Commit 5977e5b

Browse files
committed
Use newer float version of rounding.
1 parent 9b8fda2 commit 5977e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/provismet/CombatPlusCore/interfaces/DualWeapon.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
public interface DualWeapon extends MeleeWeapon {
1212
public default float getOffhandDamage () {
13-
float defaultValue = (float)MoreMath.roundDownToMultiple(this.getWeaponDamage() / 3.5f, 0.5);
13+
float defaultValue = MoreMath.roundDownToMultipleFloat(this.getWeaponDamage() / 3.5f, 0.5f);
1414
if (defaultValue > 0.5f) return defaultValue;
1515
return 0.5f;
1616
}

0 commit comments

Comments
 (0)