blob: 45bc31431bece940baee59682862c8ae867212b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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();
}
}
|