diff --git a/src/main/java/net/coderbot/iris/mixin/MixinMinecraft_Images.java b/src/main/java/net/coderbot/iris/mixin/MixinMinecraft_Images.java deleted file mode 100644 index 3c6d2c3425..0000000000 --- a/src/main/java/net/coderbot/iris/mixin/MixinMinecraft_Images.java +++ /dev/null @@ -1,33 +0,0 @@ -package net.coderbot.iris.mixin; - -import java.io.IOException; - -import org.apache.commons.io.IOUtils; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; - -import net.coderbot.iris.Iris; -import net.coderbot.iris.rendertarget.NativeImageBackedCustomTexture; -import net.coderbot.iris.shaderpack.texture.CustomTextureData; -import net.coderbot.iris.shaderpack.texture.TextureFilteringData; -import net.minecraft.client.Minecraft; -import net.minecraft.client.main.GameConfig; -import net.minecraft.resources.ResourceLocation; - -/** - * This Mixin is responsible for registering the "widgets" texture used in Iris' GUI's. - * Normally Fabric API would do this automatically, but we don't use it here, so it must be done manually. - */ -@Mixin(Minecraft.class) -public class MixinMinecraft_Images { - @Inject(method = "", at = @At("TAIL")) - private void iris$setupImages(GameConfig arg, CallbackInfo ci) { - try { - Minecraft.getInstance().getTextureManager().register(new ResourceLocation("iris", "textures/gui/widgets.png"), new NativeImageBackedCustomTexture(new CustomTextureData.PngData(new TextureFilteringData(false, false), IOUtils.toByteArray(Iris.class.getResourceAsStream("/assets/iris/textures/gui/widgets.png"))))); - } catch (IOException e) { - throw new RuntimeException(e); - } - } -} diff --git a/src/main/resources/mixins.oculus.json b/src/main/resources/mixins.oculus.json index 2476481b8c..7b34ff7278 100644 --- a/src/main/resources/mixins.oculus.json +++ b/src/main/resources/mixins.oculus.json @@ -28,7 +28,6 @@ "MixinItemBlockRenderTypes", "MixinItemInHandRenderer", "MixinLevelRenderer", - "MixinMinecraft_Images", "MixinMinecraft_PipelineManagement", "MixinModelViewBobbing", "MixinOptions_Entrypoint",