From 56c68fef9ccdbeca4a147a0d73c10d5b9fbe9b0e Mon Sep 17 00:00:00 2001 From: Leo-MathGuy Date: Thu, 25 Apr 2024 19:55:51 +0500 Subject: [PATCH] how did a format change make the test fail --- core/src/mindustry/mod/Mods.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/mod/Mods.java b/core/src/mindustry/mod/Mods.java index 0e5580a944..98caf3c8b3 100644 --- a/core/src/mindustry/mod/Mods.java +++ b/core/src/mindustry/mod/Mods.java @@ -744,8 +744,8 @@ public class Mods implements Loadable{ } } - Seq left = currentRun.keys().toSeq(); if(contentOrder != null){ + Seq left = currentRun.keys().toSeq(); for (String contentName : contentOrder){ LoadRun run = currentRun.get(contentName); if(run != null){ @@ -755,9 +755,10 @@ public class Mods implements Loadable{ Log.warn("Cannot find content defined in contentOrder: @", contentName); } } + runs.addAll(left.map(name -> currentRun.get(name)).sort()); + }else{ + runs.addAll(currentRun.values().toSeq().sort()); } - - runs.addAll(left.map(name -> currentRun.get(name)).sort()); } for(LoadRun l : runs){