From b1205fea1e84317a1dc6f6e7c3015c92836c4def Mon Sep 17 00:00:00 2001 From: Léa Gris Date: Sat, 22 May 2021 18:54:47 +0200 Subject: fix(texture): deprecated use of CASING_BLOCKS Update to GTNH's Gregtech --- src/Java/gregtech/api/enums/TAE.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Java/gregtech/api/enums') diff --git a/src/Java/gregtech/api/enums/TAE.java b/src/Java/gregtech/api/enums/TAE.java index 82ae7a3f52..550051a731 100644 --- a/src/Java/gregtech/api/enums/TAE.java +++ b/src/Java/gregtech/api/enums/TAE.java @@ -112,10 +112,10 @@ public class TAE { public static ITexture getTexture(int index){ if (gtPPLastUsedIndex >= 128) { if (CORE.MAIN_GREGTECH_5U_EXPERIMENTAL_FORK && Utils.getGregtechSubVersion() > 30) { - return Textures.BlockIcons.CASING_BLOCKS[((64*128)+index)]; + return Textures.BlockIcons.getCasingTextureForId(((64*128)+index)); } } - return Textures.BlockIcons.CASING_BLOCKS[(64+index)]; + return Textures.BlockIcons.getCasingTextureForId((64+index)); } public static int GTPP_INDEX(int ID){ -- cgit