fixed bar,added item update rate setting

This commit is contained in:
sharlotte
2021-08-08 18:03:08 +09:00
parent c210347528
commit d71a04880f
5 changed files with 7 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ import mindustry.ui.*;
import mindustry.world.blocks.storage.*;
import static UnitInfo.SVars.modUiScale;
import static arc.Core.settings;
import static mindustry.Vars.*;
public class CoresItemsDisplay {
@@ -74,7 +75,7 @@ public class CoresItemsDisplay {
core = team.core();
heat += Time.delta;
if(heat >= 60f) {
if(heat >= settings.getInt("coreItemCheckRate")) {
heat = 0;
updateItem(team);
}