From 6646aa2a3fee8e98666fe0038f0178938fd550fe Mon Sep 17 00:00:00 2001 From: Raven Szewczyk Date: Sun, 12 Jun 2022 09:37:39 +0100 Subject: Fix build errors for MTE precursor --- .../github/technus/tectech/thing/metaTileEntity/Textures.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/main/java') 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 -- cgit