1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-21 13:28:12 +03:00

Update SStats.java

This commit is contained in:
Anuken 2021-04-20 08:20:02 -04:00 committed by GitHub
parent 137792131e
commit d9b2f4ae67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ public class SStats implements SteamUserStatsCallback{
for(Planet planet : content.planets()){
for(Sector sec : planet.sectors){
if(sec.hasBase()){
for(var v : sec.info.production.values()){
for(ExportStat v : sec.info.production.values()){
if(v.mean > 0) total += v.mean * 60;
}
}
@ -178,7 +178,7 @@ public class SStats implements SteamUserStatsCallback{
});
Events.on(UnitControlEvent.class, e -> {
if(e.unit instanceof BlockUnitc block && block.tile().block == Blocks.router){
if(e.unit instanceof BlockUnitc && ((BlockUnitc)block).tile().block == Blocks.router){
becomeRouter.complete();
}
});