Minor cleanup

This commit is contained in:
Anuken
2021-03-09 19:04:29 -05:00
parent 8aba480148
commit b1e8001ae8
4 changed files with 4 additions and 5 deletions

View File

@@ -143,7 +143,7 @@ public abstract class ClientLauncher extends ApplicationCore implements Platform
if(assets.update(1000 / loadingFPS)){
loader.dispose();
loader = null;
Log.info("Total time to load: @", Time.timeSinceMillis(beginTime));
Log.info("Total time to load: @ms", Time.timeSinceMillis(beginTime));
for(ApplicationListener listener : modules){
listener.init();
}

View File

@@ -325,7 +325,7 @@ public class Renderer implements ApplicationListener{
int w = world.width() * tilesize, h = world.height() * tilesize;
int memory = w * h * 4 / 1024 / 1024;
if(memory >= 65){
if(memory >= (mobile ? 65 : 120)){
ui.showInfo("@screenshot.invalid");
return;
}

View File

@@ -36,7 +36,7 @@ public class MenuRenderer implements Disposable{
Time.mark();
generate();
cache();
Log.info("Time to generate menu: @", Time.elapsed());
Log.debug("Time to generate menu: @", Time.elapsed());
}
private void generate(){

View File

@@ -21,7 +21,6 @@ import mindustry.input.*;
import mindustry.type.*;
import mindustry.ui.*;
import mindustry.world.*;
import mindustry.world.blocks.*;
import mindustry.world.blocks.ConstructBlock.*;
import static mindustry.Vars.*;
@@ -329,7 +328,7 @@ public class PlacementFragment extends Fragment{
int amount = core.items.get(stack.item);
int stackamount = Math.round(stack.amount * state.rules.buildCostMultiplier);
String color = (amount < stackamount / 2f ? "[red]" : amount < stackamount ? "[accent]" : "[white]");
String color = (amount < stackamount / 2f ? "[scarlet]" : amount < stackamount ? "[accent]" : "[white]");
return color + UI.formatAmount(amount) + "[white]/" + stackamount;
}).padLeft(5);