diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2017-08-07 23:09:43 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2017-08-07 23:09:43 +1000 |
commit | 137eb049e600788b8a8e050fd393980b6514e51b (patch) | |
tree | 8bb46b3fb9f02bed4d3bf0a7c6c12926349ebf19 /src/Java/gregtech/api/enums | |
parent | f3ec7d2fc4ac502b085016e9dcae7799b717a194 (diff) | |
download | GT5-Unofficial-137eb049e600788b8a8e050fd393980b6514e51b.tar.gz GT5-Unofficial-137eb049e600788b8a8e050fd393980b6514e51b.tar.bz2 GT5-Unofficial-137eb049e600788b8a8e050fd393980b6514e51b.zip |
$ Fixed RTG reflection.
$ Fixed issue where RTGs would revert back to HV after a restart/rejoin.
$ Fixed the Thermal Boiler Assembly.
% Migrated TAE to use slot 96+.
+ Added some extra logging to verify.
$ Made Shelves have textures.
Diffstat (limited to 'src/Java/gregtech/api/enums')
-rw-r--r-- | src/Java/gregtech/api/enums/TAE.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/Java/gregtech/api/enums/TAE.java b/src/Java/gregtech/api/enums/TAE.java index e3c59f209f..787ef1fe7d 100644 --- a/src/Java/gregtech/api/enums/TAE.java +++ b/src/Java/gregtech/api/enums/TAE.java @@ -3,18 +3,25 @@ package gregtech.api.enums; import gregtech.api.interfaces.ITexture; import gregtech.api.objects.GT_CopiedBlockTexture; import gregtech.api.objects.GT_RenderedTexture; +import gtPlusPlus.core.util.Utils; public class TAE { //TAE stands for Texture Array Expansion. public static int gtTexturesArrayStartOrigin; - public static int gtPPLastUsedIndex = 512; + public static int gtPPLastUsedIndex = 96; public static boolean hasArrayBeenExpanded = false; public static boolean hookGtTextures() { ITexture[] textureArrayDump = Textures.BlockIcons.CASING_BLOCKS; ITexture[] newTextureArray = new ITexture[1024]; + Utils.LOG_INFO("|======| Texture Array Start Length: "+textureArrayDump.length+" |======|"); + for (int r=0;r<textureArrayDump.length;r++){ + if (textureArrayDump[r] == null){ + Utils.LOG_WARNING("Texture slot "+r+" is empty."); + } + } gtTexturesArrayStartOrigin = textureArrayDump.length; System.arraycopy(textureArrayDump, 0, newTextureArray, 0, textureArrayDump.length); Textures.BlockIcons.CASING_BLOCKS = newTextureArray; @@ -44,11 +51,11 @@ public class TAE { return null; } else { - return Textures.BlockIcons.CASING_BLOCKS[(512+index)]; + return Textures.BlockIcons.CASING_BLOCKS[(96+index)]; } } public static int GTPP_INDEX(int ID){ - return (512+ID); + return (96+ID); } } |