modmuss50 / OptiFabric

A fabric mod that patches optifine into the game at runtime.
https://www.curseforge.com/minecraft/mc-mods/optifabric
Mozilla Public License 2.0
172 stars 182 forks source link

Crashing when mixing in to ItemRenderer.itemGuiRenderOverlay #199

Open approved opened 4 years ago

approved commented 4 years ago

Using the following @Inject, Mixing in to ItemRenderer, crashes the game.

@Inject(at = @At(value = "INVOKE", target = "net/minecraft/item/ItemStack.isDamaged()Z"),
            method = "renderGuiItemOverlay(Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/item/ItemStack;IILjava/lang/String;)V",
            cancellable = true)

Log with Error: https://paste.ee/p/4ajir

Edit: included the class I'm mixing in to

modmuss50 commented 4 years ago

This is targetting ItemRenderer