diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt index 7098150ea..480be51d8 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt @@ -514,13 +514,14 @@ object RenderUtils { renderString(any, offsetX, offsetY, center = false) val width = renderer.getStringWidth(any.removeColor()) offsetX += width - } - if (any is ItemStack) { - val isX = getAbsX(resolution, 0) + offsetX - val isY = getAbsY(resolution, 0) + offsetY + } else if (any is ItemStack) { + val isX = getAbsX(resolution, 200) + offsetX + val isY = getAbsY(resolution, 16) + offsetY any.renderOnScreen(isX.toFloat(), isY.toFloat(), itemScale) offsetX += 12 + } else { + println("unknown render object: $any") } } } |