diff --git a/src/main/java/dev/yurisuika/raised/client/gui/screens/RaisedScreen.java b/src/main/java/dev/yurisuika/raised/client/gui/screens/RaisedScreen.java index d5be90b1..42c13a11 100644 --- a/src/main/java/dev/yurisuika/raised/client/gui/screens/RaisedScreen.java +++ b/src/main/java/dev/yurisuika/raised/client/gui/screens/RaisedScreen.java @@ -217,7 +217,7 @@ public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float partia } else { guiGraphics.blitSprite(ResourceLocation.tryParse("hud/hotbar_selection"), -182 - 1 + slot, offset - 23, 24, 23); if (texture == Texture.PATCH || (texture == Texture.AUTO && !Pack.getPack())) { - ((GuiGraphicsInvoker)guiGraphics).invokeInnerBlit(ResourceLocation.tryParse("textures/gui/sprites/hud/hotbar_selection.png"), -182 - 1 + slot, -182 - 1 + slot + 24, offset, offset + 1, 0, 0, 1, 1 / 23.0F, 0); + ((GuiGraphicsInvoker) guiGraphics).invokeInnerBlit(ResourceLocation.tryParse("textures/gui/sprites/hud/hotbar_selection.png"), -182 - 1 + slot, -182 - 1 + slot + 24, offset, offset + 1, 0, 0, 1, 1 / 23.0F, 0); } } diff --git a/src/main/java/dev/yurisuika/raised/mixin/client/gui/GuiMixin.java b/src/main/java/dev/yurisuika/raised/mixin/client/gui/GuiMixin.java index c9ae5086..170e40f7 100644 --- a/src/main/java/dev/yurisuika/raised/mixin/client/gui/GuiMixin.java +++ b/src/main/java/dev/yurisuika/raised/mixin/client/gui/GuiMixin.java @@ -84,7 +84,7 @@ private void patchHotbarSelector(GuiGraphics guiGraphics, float partialTick, Cal if (Option.getTexture() == Texture.PATCH || (Option.getTexture() == Texture.AUTO && !Pack.getPack())) { int x = (guiGraphics.guiWidth() / 2) - 92 + player.getInventory().selected * 20; int y = guiGraphics.guiHeight(); - ((GuiGraphicsInvoker)guiGraphics).invokeInnerBlit(ResourceLocation.tryParse("textures/gui/sprites/hud/hotbar_selection.png"), x, x + 24, y, y + 1, 0, 0, 1, 1 / 23.0F, 0); + ((GuiGraphicsInvoker) guiGraphics).invokeInnerBlit(ResourceLocation.tryParse("textures/gui/sprites/hud/hotbar_selection.png"), x, x + 24, y, y + 1, 0, 0, 1, 1 / 23.0F, 0); } }