mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-25 20:58:34 +01:00
fixed the environmental ocular displaying stats incorrectly
closes #272
This commit is contained in:
parent
d3023d9661
commit
d334272467
1 changed files with 5 additions and 8 deletions
|
@ -326,23 +326,20 @@ public class ClientEvents {
|
|||
stack.popPose();
|
||||
|
||||
if (!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 : 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, 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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue