diff options
author | NotAPenguin <michiel.vandeginste@gmail.com> | 2024-09-16 00:53:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-15 22:53:18 +0000 |
commit | b530fdac89f5d764613a6a69339e4324083c9895 (patch) | |
tree | a7c36051f84f8e4a7a654ec2266a3ea5a49a4ed8 /src/main/java/gregtech/api/enums/TAE.java | |
parent | 43af160db2e04f06bba3792a11860ee42c3d1947 (diff) | |
download | GT5-Unofficial-b530fdac89f5d764613a6a69339e4324083c9895.tar.gz GT5-Unofficial-b530fdac89f5d764613a6a69339e4324083c9895.tar.bz2 GT5-Unofficial-b530fdac89f5d764613a6a69339e4324083c9895.zip |
Remove GT++ AutoMap (#3199)
Diffstat (limited to 'src/main/java/gregtech/api/enums/TAE.java')
-rw-r--r-- | src/main/java/gregtech/api/enums/TAE.java | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/main/java/gregtech/api/enums/TAE.java b/src/main/java/gregtech/api/enums/TAE.java index 79d3037a5a..48a39da036 100644 --- a/src/main/java/gregtech/api/enums/TAE.java +++ b/src/main/java/gregtech/api/enums/TAE.java @@ -6,7 +6,6 @@ import java.util.HashSet; import gregtech.api.interfaces.ITexture; import gtPlusPlus.api.objects.Logger; -import gtPlusPlus.api.objects.data.AutoMap; import gtPlusPlus.core.block.ModBlocks; import gtPlusPlus.core.lib.GTPPCore; import gtPlusPlus.core.util.reflect.ReflectionUtils; @@ -53,22 +52,22 @@ public class TAE { } public static void finalizeTAE() { - String aFreeSpaces = ""; - String aPageAndSlotFree = ""; - AutoMap<Integer> aTemp = new AutoMap<>(mFreeSlots); + StringBuilder aFreeSpaces = new StringBuilder(); + StringBuilder aPageAndSlotFree = new StringBuilder(); + Integer[] aTemp = mFreeSlots.toArray(new Integer[] {}); for (int i = 0; i < mFreeSlots.size(); i++) { - int j = aTemp.get(i); - aFreeSpaces += j; - aPageAndSlotFree += getPageFromIndex(j); + int j = aTemp[i]; + aFreeSpaces.append(j); + aPageAndSlotFree.append(getPageFromIndex(j)); if (i != (mFreeSlots.size() - 1)) { - aFreeSpaces += ", "; - aPageAndSlotFree += ", "; + aFreeSpaces.append(", "); + aPageAndSlotFree.append(", "); } } Logger.INFO("Free Indexes within TAE: " + aFreeSpaces); Logger.INFO("Free Page slots within TAE: " + aPageAndSlotFree); Logger.INFO("Filling them with ERROR textures."); - for (int aFreeSlot : aTemp.values()) { + for (int aFreeSlot : aTemp) { registerTexture(aFreeSlot, new GTPPCopiedBlockTexture(ModBlocks.blockCasingsTieredGTPP, 1, 15)); } Logger.INFO("Finalising TAE."); |