aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorRaven Szewczyk <git@kubasz.xyz>2022-06-12 09:37:39 +0100
committerRaven Szewczyk <git@kubasz.xyz>2022-06-12 09:37:39 +0100
commit6646aa2a3fee8e98666fe0038f0178938fd550fe (patch)
tree584d8cbbf63f8fa535964e8e44b7849f70e87a2e /src/main/java
parent9b1b42d0e3154c166b8edba5a433278f83a32f7d (diff)
downloadGT5-Unofficial-6646aa2a3fee8e98666fe0038f0178938fd550fe.tar.gz
GT5-Unofficial-6646aa2a3fee8e98666fe0038f0178938fd550fe.tar.bz2
GT5-Unofficial-6646aa2a3fee8e98666fe0038f0178938fd550fe.zip
Fix build errors for MTE precursor
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/Textures.java9
1 files changed, 5 insertions, 4 deletions
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 bc853334d2..d9ccb1529e 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
@@ -201,9 +201,10 @@ public class Textures {
}
MACHINE_CASINGS=MACHINE_CASINGS_TT;
- OVERLAYS_ENERGY_IN=OVERLAYS_ENERGY_IN_TT;
- OVERLAYS_ENERGY_OUT=OVERLAYS_ENERGY_OUT_TT;
- OVERLAYS_ENERGY_IN_MULTI=OVERLAYS_ENERGY_IN_MULTI_TT;
- OVERLAYS_ENERGY_OUT_MULTI=OVERLAYS_ENERGY_OUT_MULTI_TT;
+ // These will throw IndexOutOfBoundsException if one of the arrays are the wrong length
+ System.arraycopy(OVERLAYS_ENERGY_IN_TT, 0, OVERLAYS_ENERGY_IN, 0, OVERLAYS_ENERGY_IN_TT.length);
+ System.arraycopy(OVERLAYS_ENERGY_OUT_TT, 0, OVERLAYS_ENERGY_OUT, 0, OVERLAYS_ENERGY_OUT_TT.length);
+ System.arraycopy(OVERLAYS_ENERGY_IN_MULTI_TT, 0, OVERLAYS_ENERGY_IN_MULTI, 0, OVERLAYS_ENERGY_IN_MULTI_TT.length);
+ System.arraycopy(OVERLAYS_ENERGY_OUT_MULTI_TT, 0, OVERLAYS_ENERGY_OUT_MULTI, 0, OVERLAYS_ENERGY_OUT_MULTI_TT.length);
}
} \ No newline at end of file