diff options
author | A_Peng215 <92242402+APeng215@users.noreply.github.com> | 2023-01-07 18:45:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-07 12:45:10 +0200 |
commit | f50c9f98a76e159f11e37e479f64d432b6c2997f (patch) | |
tree | 490afc091555b7fe6f4a7fa91582519f86e42777 /src | |
parent | e0bcfebef37e727ccea046138b6c633c57056d96 (diff) | |
download | LibGui-f50c9f98a76e159f11e37e479f64d432b6c2997f.tar.gz LibGui-f50c9f98a76e159f11e37e479f64d432b6c2997f.tar.bz2 LibGui-f50c9f98a76e159f11e37e479f64d432b6c2997f.zip |
Fix WItem display position offset (#181)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WItem.java | 2 |
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; } |