diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-24 17:55:12 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-24 17:55:12 +0100 |
commit | 1ebc88de808bcfa107f640cc2ea9e3cd17b5cedf (patch) | |
tree | fc90194f7cf16f4384664822dd073cf6d1f816d6 /src/main/java/at/hannibal2/skyhanni/utils | |
parent | 48f5a5599fe74f42c65000e82dd0ef116b07f35c (diff) | |
download | skyhanni-1ebc88de808bcfa107f640cc2ea9e3cd17b5cedf.tar.gz skyhanni-1ebc88de808bcfa107f640cc2ea9e3cd17b5cedf.tar.bz2 skyhanni-1ebc88de808bcfa107f640cc2ea9e3cd17b5cedf.zip |
Showing item icon in visitor item need list.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt index c826ac1f6..dec6964e2 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt @@ -41,9 +41,14 @@ object NEUItems { fun ItemStack.renderOnScreen(x: Float, y: Float) { GlStateManager.pushMatrix() - GlStateManager.translate(x, y, 0f) + val isSkull = item === Items.skull + if (isSkull) { + GlStateManager.translate(x - 2, y - 2, 0f) + } else { + GlStateManager.translate(x, y, 0f) + } - val scale = if (item === Items.skull) 0.8f else 0.6f + val scale = if (isSkull) 0.8f else 0.6f GlStateManager.scale(scale, scale, 1f) Utils.drawItemStack(this, 0, 0) GlStateManager.popMatrix() |