diff options
author | Connor-Colenso <52056774+Connor-Colenso@users.noreply.github.com> | 2022-06-26 19:15:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-26 19:15:10 +0100 |
commit | f2449849fbeb9c0c1598c463b28dff0914e2344c (patch) | |
tree | 584d8cbbf63f8fa535964e8e44b7849f70e87a2e /src/main/java/com | |
parent | 9b1b42d0e3154c166b8edba5a433278f83a32f7d (diff) | |
parent | 6646aa2a3fee8e98666fe0038f0178938fd550fe (diff) | |
download | GT5-Unofficial-f2449849fbeb9c0c1598c463b28dff0914e2344c.tar.gz GT5-Unofficial-f2449849fbeb9c0c1598c463b28dff0914e2344c.tar.bz2 GT5-Unofficial-f2449849fbeb9c0c1598c463b28dff0914e2344c.zip |
Merge pull request #52 from GTNewHorizons/mte-base-fix
Fix build errors for MTE precursor
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/github/technus/tectech/thing/metaTileEntity/Textures.java | 9 |
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 |