Fix item icons not being rendered correctly for 1.19.2

This commit is contained in:
DBotThePony 2024-01-02 14:48:32 +07:00
parent 5f60ae1896
commit b763a7d1be
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -36,7 +36,7 @@ class MGUIGraphics(val pose: PoseStack) {
fun renderFakeItem(poseStack: PoseStack, itemStack: ItemStack, x: Int, y: Int) {
val global = RenderSystem.getModelViewStack()
global.pushPose()
global.last().pose().mul(poseStack.last().pose())
global.last().pose().multiply(poseStack.last().pose())
global.last().normal().mul(poseStack.last().normal())
RenderSystem.applyModelViewMatrix()
minecraft.itemRenderer.renderGuiItem(itemStack, x, y)