From 1622ecd0105d1998994a408c69f44d61ed0e7d62 Mon Sep 17 00:00:00 2001 From: Leo-MathGuy Date: Thu, 25 Apr 2024 19:41:05 +0500 Subject: [PATCH] Fixed double seq --- core/src/mindustry/mod/Mods.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/mindustry/mod/Mods.java b/core/src/mindustry/mod/Mods.java index 251452162d..c31f648637 100644 --- a/core/src/mindustry/mod/Mods.java +++ b/core/src/mindustry/mod/Mods.java @@ -748,21 +748,19 @@ public class Mods implements Loadable{ } } - Seq added = new Seq<>(); + Seq left = currentRun.keys().toSeq(); if(contentOrder != null){ for (String contentName : contentOrder){ LoadRun run = currentRun.get(contentName); if(run != null){ runs.add(run); - added.add(contentName); + left.remove(contentName); }else{ Log.warn("Cannot find content defined in contentOrder: @", contentName); } } } - Seq left = currentRun.keys().toSeq(); - left.removeAll(added); runs.addAll(left.map(name -> currentRun.get(name)).sort()); }