Unnecessary cast

This commit is contained in:
2025-02-19 12:49:32 -05:00
parent 1481cc7ac0
commit 1e64108b56
+2 -2
View File
@@ -398,9 +398,9 @@ public class WpakPowerManager {
public static float getCost(Power power, int trains) {
if (power.curves.get("COSTAMT") != null)
return power.cost + (float) (power.curves.get("COSTAMT").getValue() * trains);
return power.cost + (power.curves.get("COSTAMT").getValue() * trains);
else
return power.cost * (1 + (float) (power.curves.get("COSTAMT").getValue() * trains));
return power.cost * (1 + (power.curves.get("COSTAMT").getValue() * trains));
}