aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA_Peng215 <92242402+APeng215@users.noreply.github.com>2023-01-07 18:45:10 +0800
committerGitHub <noreply@github.com>2023-01-07 12:45:10 +0200
commitf50c9f98a76e159f11e37e479f64d432b6c2997f (patch)
tree490afc091555b7fe6f4a7fa91582519f86e42777
parente0bcfebef37e727ccea046138b6c633c57056d96 (diff)
downloadLibGui-f50c9f98a76e159f11e37e479f64d432b6c2997f.tar.gz
LibGui-f50c9f98a76e159f11e37e479f64d432b6c2997f.tar.bz2
LibGui-f50c9f98a76e159f11e37e479f64d432b6c2997f.zip
Fix WItem display position offset (#181)
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WItem.java2
1 files changed, 1 insertions, 1 deletions
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;
}