diff options
author | Technus <daniel112092@gmail.com> | 2017-08-03 23:23:09 +0200 |
---|---|---|
committer | Technus <daniel112092@gmail.com> | 2017-08-03 23:23:09 +0200 |
commit | 2cfcaa00bdc108f9c7bcaad8f301b6e8505d967e (patch) | |
tree | 25a4fd99ba577ae24a4ff7d9106b723d1cd4ac63 /src/main/java/gregtech/api | |
parent | f413300f596269173b1c65cce56ed4d514a7035a (diff) | |
download | GT5-Unofficial-2cfcaa00bdc108f9c7bcaad8f301b6e8505d967e.tar.gz GT5-Unofficial-2cfcaa00bdc108f9c7bcaad8f301b6e8505d967e.tar.bz2 GT5-Unofficial-2cfcaa00bdc108f9c7bcaad8f301b6e8505d967e.zip |
Make custom casings compatible with new texturing system.
Diffstat (limited to 'src/main/java/gregtech/api')
-rw-r--r-- | src/main/java/gregtech/api/enums/Textures.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/enums/Textures.java b/src/main/java/gregtech/api/enums/Textures.java index 810c6eb68e..40822a9483 100644 --- a/src/main/java/gregtech/api/enums/Textures.java +++ b/src/main/java/gregtech/api/enums/Textures.java @@ -706,6 +706,8 @@ public class Textures { for (byte j = 0; j < MACHINE_CASINGS[i].length; j++) MACHINE_CASINGS[i][j] = new GT_SidedTexture(MACHINECASINGS_BOTTOM[i], MACHINECASINGS_TOP[i], MACHINECASINGS_SIDE[i], Dyes.getModulation(j - 1, Dyes.MACHINE_METAL.mRGBa)); casingTexturePages[0]=CASING_BLOCKS; + if(casingTexturePages[8]==null) + casingTexturePages[8]=new ITexture[128]; } protected IIcon mIcon; |