From f50c9f98a76e159f11e37e479f64d432b6c2997f Mon Sep 17 00:00:00 2001 From: A_Peng215 <92242402+APeng215@users.noreply.github.com> Date: Sat, 7 Jan 2023 18:45:10 +0800 Subject: Fix WItem display position offset (#181) --- src/main/java/io/github/cottonmc/cotton/gui/widget/WItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WItem.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WItem.java index e309475..89b973a 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WItem.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WItem.java @@ -65,7 +65,7 @@ public class WItem extends WWidget { MinecraftClient mc = MinecraftClient.getInstance(); ItemRenderer renderer = mc.getItemRenderer(); renderer.zOffset = 100f; - renderer.renderInGui(items.get(current), x + getWidth() / 2 - 9, y + getHeight() / 2 - 9); + renderer.renderInGui(items.get(current), x + getWidth() / 2 - 8, y + getHeight() / 2 - 8); renderer.zOffset = 0f; } -- cgit