diff --git a/desktop/src/mindustry/desktop/steam/SStats.java b/desktop/src/mindustry/desktop/steam/SStats.java index c2f7fd1e59..fc5f01cbef 100644 --- a/desktop/src/mindustry/desktop/steam/SStats.java +++ b/desktop/src/mindustry/desktop/steam/SStats.java @@ -1,6 +1,7 @@ package mindustry.desktop.steam; import arc.*; +import arc.math.*; import arc.struct.*; import arc.util.*; import com.codedisaster.steamworks.*; @@ -99,13 +100,13 @@ public class SStats implements SteamUserStatsCallback{ for(Sector sec : planet.sectors){ if(sec.hasBase()){ for(var v : sec.info.production.values()){ - total += (int)(v.mean * 60); + if(v.mean > 0) total += v.mean * 60; } } } } - SStat.maxProduction.max((int)total); + SStat.maxProduction.max(Mathf.round(total)); }); Events.run(Trigger.newGame, () -> Core.app.post(() -> {