From 0121112e5ea9c72050957af2c2ad4aecd9d70270 Mon Sep 17 00:00:00 2001 From: Léa Gris Date: Mon, 3 Oct 2022 21:53:50 +0200 Subject: ref(texture_api): update to the texture api (#386) * ref(textures): replace deprecated texture objects with api * :spotlessapply --- .../java/gtPlusPlus/xmod/gregtech/api/enums/CustomGtTextures.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/api/enums') diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/enums/CustomGtTextures.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/enums/CustomGtTextures.java index a31e728e23..29609f7edc 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/api/enums/CustomGtTextures.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/enums/CustomGtTextures.java @@ -3,7 +3,7 @@ package gtPlusPlus.xmod.gregtech.api.enums; import gregtech.api.GregTech_API; import gregtech.api.interfaces.IIconContainer; import gregtech.api.interfaces.ITexture; -import gregtech.api.objects.GT_RenderedTexture; +import gregtech.api.render.TextureFactory; import gtPlusPlus.core.lib.CORE; import net.minecraft.client.renderer.texture.TextureMap; import net.minecraft.util.IIcon; @@ -16,7 +16,7 @@ public class CustomGtTextures { PUMP, SKOOKUMCHOOCHER; - public static final ITexture[] ERROR_RENDERING = new ITexture[] {new GT_RenderedTexture(RENDERING_ERROR)}; + public static final ITexture[] ERROR_RENDERING = new ITexture[] {TextureFactory.of(RENDERING_ERROR)}; protected IIcon mIcon, mOverlay; -- cgit