aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorTec <daniel112092@gmail.com>2018-04-20 06:02:30 +0200
committerTec <daniel112092@gmail.com>2018-04-20 06:02:30 +0200
commitb67796e15e2386c6a039a35dcc22bddc36ab04ce (patch)
treea2384f1a00ba0c9d483d99bd6044a87e995b506b /src/main/java/com
parentf50d9697443d0d85127407dcddcae060e0d2d5b2 (diff)
downloadGT5-Unofficial-b67796e15e2386c6a039a35dcc22bddc36ab04ce.tar.gz
GT5-Unofficial-b67796e15e2386c6a039a35dcc22bddc36ab04ce.tar.bz2
GT5-Unofficial-b67796e15e2386c6a039a35dcc22bddc36ab04ce.zip
texture load logic
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/github/technus/tectech/TecTech.java12
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/Textures.java8
2 files changed, 9 insertions, 11 deletions
diff --git a/src/main/java/com/github/technus/tectech/TecTech.java b/src/main/java/com/github/technus/tectech/TecTech.java
index 253cd616f7..558d997877 100644
--- a/src/main/java/com/github/technus/tectech/TecTech.java
+++ b/src/main/java/com/github/technus/tectech/TecTech.java
@@ -32,10 +32,7 @@ import java.util.HashSet;
import static com.github.technus.tectech.CommonValues.*;
import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE;
-import static gregtech.api.GregTech_API.sGTBlockIconload;
-import static gregtech.api.enums.Dyes.MACHINE_METAL;
-import static gregtech.api.enums.Dyes.dyeBlue;
-import static gregtech.api.enums.Dyes.dyeLightBlue;
+import static gregtech.api.enums.Dyes.*;
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION, dependencies = "required-after:Forge@[10.13.4.1614,);"
+ "required-after:YAMCore@[0.5.70,);" + "required-after:gregtech;" + "after:CoFHCore;" + "after:Thaumcraft;" + "after:dreamcraft;")
@@ -83,12 +80,7 @@ public class TecTech {
MACHINE_METAL.mRGBa[2]=255;
try {
- sGTBlockIconload.add(new Runnable() {
- @Override
- public void run() {
- new Textures();
- }
- });
+ new Textures();
}catch (Throwable t){
Logger.error("Loading textures...",t);
}
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/Textures.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/Textures.java
index 71a51a50bf..83493e562b 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/Textures.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/Textures.java
@@ -152,12 +152,18 @@ public class Textures {
};
public static ITexture[][] MACHINE_CASINGS_TT = new ITexture[16][17];
- static{
+
+ public Textures(){
for (byte i = 0; i < MACHINE_CASINGS_TT.length; i++) {
for (byte j = 0; j < MACHINE_CASINGS_TT[i].length; j++) {
MACHINE_CASINGS_TT[i][j] = new GT_SidedTexture(MACHINECASINGS_BOTTOM_TT[i], MACHINECASINGS_TOP_TT[i], MACHINECASINGS_SIDE_TT[i], Dyes.getModulation(j - 1, MACHINE_METAL.mRGBa));
}
}
+ //for (byte i = 0; i < MACHINE_CASINGS.length; i++) {
+ // for (byte j = 0; j < MACHINE_CASINGS[i].length; j++) {
+ // MACHINE_CASINGS_TT[i][j] = MACHINE_CASINGS[i][j];
+ // }
+ //}
MACHINE_CASINGS=MACHINE_CASINGS_TT;
}
} \ No newline at end of file