diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-09-01 14:24:00 +1000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-09-01 14:24:00 +1000 |
commit | db20475a5973d588a9ef9e52feb22da0f4b92205 (patch) | |
tree | dc92eab9cd969cec60a9559b4674a6e961dea7a6 /src/Java/gregtech | |
parent | 3311449b3bcadbd9f571abb7374655dde57042fd (diff) | |
download | GT5-Unofficial-db20475a5973d588a9ef9e52feb22da0f4b92205.tar.gz GT5-Unofficial-db20475a5973d588a9ef9e52feb22da0f4b92205.tar.bz2 GT5-Unofficial-db20475a5973d588a9ef9e52feb22da0f4b92205.zip |
% More work on LNR.
Diffstat (limited to 'src/Java/gregtech')
-rw-r--r-- | src/Java/gregtech/api/enums/TAE.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Java/gregtech/api/enums/TAE.java b/src/Java/gregtech/api/enums/TAE.java index 0abc5db38a..3ec018b3a1 100644 --- a/src/Java/gregtech/api/enums/TAE.java +++ b/src/Java/gregtech/api/enums/TAE.java @@ -4,7 +4,7 @@ import java.lang.reflect.Field; import gregtech.api.interfaces.ITexture; import gregtech.api.objects.GT_CopiedBlockTexture; - +import gtPlusPlus.api.objects.Logger; import gtPlusPlus.core.lib.CORE; import gtPlusPlus.core.util.Utils; import gtPlusPlus.core.util.reflect.ReflectionUtils; @@ -47,9 +47,9 @@ public class TAE { }*/ public static boolean registerTextures(GT_CopiedBlockTexture gt_CopiedBlockTexture) { - try { - + try { //Handle page 2. + Logger.INFO("[TAE} Registering Texture, Last used casing ID is "+gtPPLastUsedIndex+"."); if (gtPPLastUsedIndex >= 128) { if (CORE.MAIN_GREGTECH_5U_EXPERIMENTAL_FORK && Utils.getGregtechSubVersion() > 30) { Field x = ReflectionUtils.getField(Textures.BlockIcons.class, "casingTexturePages"); @@ -58,6 +58,7 @@ public class TAE { if (h != null) { h[64][secondaryIndex++] = gt_CopiedBlockTexture; x.set(null, h); + Logger.INFO("[TAE} Registered Texture with ID "+(secondaryIndex-1)+" in secondary index."); return true; } } @@ -67,6 +68,7 @@ public class TAE { //set to page 1. else { Textures.BlockIcons.CASING_BLOCKS[gtPPLastUsedIndex] = gt_CopiedBlockTexture; + Logger.INFO("[TAE} Registered Texture with ID "+(gtPPLastUsedIndex)+" in main index."); gtPPLastUsedIndex++; return true; } @@ -74,6 +76,7 @@ public class TAE { catch (Throwable t) { t.printStackTrace(); } + Logger.INFO("[TAE} Failed to register texture, Last used casing ID is "+gtPPLastUsedIndex+"."); return false; } |