Fix polluting global item renderer Z offset

This commit is contained in:
DBotThePony 2021-08-24 22:40:43 +07:00
parent e5f81569f9
commit 495af87688
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -69,6 +69,8 @@ public abstract class AbstractSlotPanel extends EditablePanel {
RenderSystem.depthFunc(GL_ALWAYS);
screen.getItemRenderer().renderGuiItemDecorations(screen.getFont(), itemstack, 0, 0, count_override);
screen.getItemRenderer().blitOffset = 0;
// too big accumulations can lead to Z near clipping issues
accumulate3DHeight(101);
height = 101;