diff options
author | MuXiu1997 <MuXiu1997@Gmail.com> | 2022-04-08 21:41:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-08 15:41:30 +0200 |
commit | 1a7e8f13d7253d1b14dab2eeb99d406234e2485f (patch) | |
tree | 5ae385baa3ff4404d59ea311c448fab868c7b9dd /src/main/java/gregtech/loaders | |
parent | 6c517bd58bacb055cddb0ae49667e0daa3ea346a (diff) | |
download | GT5-Unofficial-1a7e8f13d7253d1b14dab2eeb99d406234e2485f.tar.gz GT5-Unofficial-1a7e8f13d7253d1b14dab2eeb99d406234e2485f.tar.bz2 GT5-Unofficial-1a7e8f13d7253d1b14dab2eeb99d406234e2485f.zip |
Allows sorting of configuration circuits (#1012)
* Allows sorting of configuration circuits
* Fix things
Diffstat (limited to 'src/main/java/gregtech/loaders')
-rw-r--r-- | src/main/java/gregtech/loaders/preload/GT_PreLoad.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/gregtech/loaders/preload/GT_PreLoad.java b/src/main/java/gregtech/loaders/preload/GT_PreLoad.java index e3d4178d97..4fb7ec54a3 100644 --- a/src/main/java/gregtech/loaders/preload/GT_PreLoad.java +++ b/src/main/java/gregtech/loaders/preload/GT_PreLoad.java @@ -167,7 +167,7 @@ public class GT_PreLoad { } public static void runMineTweakerCompat() { - if (!Loader.isModLoaded("MineTweaker3")) + if (!Loader.isModLoaded("MineTweaker3")) return; GT_FML_LOGGER.info("preReader"); @@ -535,6 +535,10 @@ public class GT_PreLoad { GT_Mod.gregtechproxy.mCoverTabsFlipped = GregTech_API.sClientDataFile.get("interface", "FlipCoverTabs", false); GT_Mod.gregtechproxy.mTooltipVerbosity = GregTech_API.sClientDataFile.get("interface", "TooltipVerbosity", 2); GT_Mod.gregtechproxy.mTooltipShiftVerbosity = GregTech_API.sClientDataFile.get("interface", "TooltipShiftVerbosity", 3); - + final String[] Circuits = GregTech_API.sClientDataFile.get("interface", "CircuitsOrder" ); + GT_Mod.gregtechproxy.mCircuitsOrder.clear(); + for (int i = 0; i < Circuits.length; i++) { + GT_Mod.gregtechproxy.mCircuitsOrder.putIfAbsent(Circuits[i], i); + } } } |