From d6a3d761b00d3938219892d958e9c4bdcc8ea63e Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 15 Sep 2022 15:10:18 +0200 Subject: [PATCH] fixed the environmental ocular displaying stats incorrectly closes #272 --- .../de/ellpeck/naturesaura/events/ClientEvents.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/events/ClientEvents.java b/src/main/java/de/ellpeck/naturesaura/events/ClientEvents.java index 3432502a..6e7fe177 100644 --- a/src/main/java/de/ellpeck/naturesaura/events/ClientEvents.java +++ b/src/main/java/de/ellpeck/naturesaura/events/ClientEvents.java @@ -336,23 +336,20 @@ public class ClientEvents { stack.popPose(); if (!ClientEvents.heldOcular.isEmpty()) { - var scale = 0.75F; stack.pushPose(); - stack.scale(scale, scale, scale); + //stack.scale(scale, scale, scale); var stackX = conf % 2 == 0 ? 10 : res.getGuiScaledWidth() - 22; - var stackY = conf < 2 ? 15 : res.getGuiScaledHeight() - 55; + var stackY = conf < 2 ? 10 : res.getGuiScaledHeight() - 60; for (var effect : ClientEvents.SHOWING_EFFECTS.values()) { - var theX = (int) (stackX / scale); - var theY = (int) (stackY / scale); var itemStack = effect.getA(); - Helper.renderItemInGui(itemStack, theX, theY, 1F); + Helper.renderItemInGui(itemStack, stackX, stackY, 1F); if (effect.getB()) { RenderSystem.disableDepthTest(); RenderSystem.setShaderTexture(0, ClientEvents.OVERLAYS); - Screen.blit(stack, theX, theY, 240, 0, 16, 16, 256, 256); + Screen.blit(stack, stackX, stackY, 240, 0, 16, 16, 256, 256); RenderSystem.enableDepthTest(); } - stackY += 8; + stackY += 12; } stack.popPose(); }