diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/slot/AbstractSlotPanel.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/slot/AbstractSlotPanel.kt index 10635cdcc..ea53cd915 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/slot/AbstractSlotPanel.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/slot/AbstractSlotPanel.kt @@ -32,7 +32,7 @@ abstract class AbstractSlotPanel> @JvmOverloads constru RenderSystem.setShader(GameRenderer::getPositionTexShader) if (!itemstack.isEmpty) { - screen.renderItemStack(absoluteX + 1, absoluteY + 1, itemstack, countOverride) + screen.renderItemStack(absoluteX, absoluteY, itemstack, countOverride) clearDepth(graphics) } diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/slot/UserFilteredSlotPanel.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/slot/UserFilteredSlotPanel.kt index 820ce2a0a..e8dcf674c 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/slot/UserFilteredSlotPanel.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/slot/UserFilteredSlotPanel.kt @@ -42,7 +42,7 @@ abstract class UserFilteredSlotPanel, out T : Slot>( if (slotFilter !== Items.AIR) { val itemStack = ItemStack(slotFilter!!, 1) - screen.renderItemStack(absoluteX + 1, absoluteY + 1, itemStack, null) + screen.renderItemStack(absoluteX, absoluteY, itemStack, null) clearDepth(graphics) graphics.renderRect(0f, 0f, width, height, color = SLOT_FILTER_COLOR) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/tech/AndroidStationScreen.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/tech/AndroidStationScreen.kt index 97e36e7eb..f4067d725 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/tech/AndroidStationScreen.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/tech/AndroidStationScreen.kt @@ -314,7 +314,7 @@ private class AndroidResearchButton( val stack = graphics.pose stack.pushPose() stack.translate(1f, 1f, 0f) - screen.renderItemStack(absoluteX + 1, absoluteY + 1, itemstack) + screen.renderItemStack(absoluteX, absoluteY, itemstack) stack.popPose() clearDepth(graphics)