aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java/dev/isxander/yacl3/mixin/MinecraftMixin.java
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/main/java/dev/isxander/yacl3/mixin/MinecraftMixin.java')
-rw-r--r--common/src/main/java/dev/isxander/yacl3/mixin/MinecraftMixin.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/common/src/main/java/dev/isxander/yacl3/mixin/MinecraftMixin.java b/common/src/main/java/dev/isxander/yacl3/mixin/MinecraftMixin.java
deleted file mode 100644
index 45bc314..0000000
--- a/common/src/main/java/dev/isxander/yacl3/mixin/MinecraftMixin.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package dev.isxander.yacl3.mixin;
-
-import dev.isxander.yacl3.gui.image.ImageRendererManager;
-import net.minecraft.client.Minecraft;
-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;
-
-@Mixin(Minecraft.class)
-public class MinecraftMixin {
- @Inject(method = "destroy", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/Minecraft;close()V", shift = At.Shift.BEFORE))
- private void closeImages(CallbackInfo ci) {
- ImageRendererManager.closeAll();
- }
-}