From 4ca63a0650327e7d7df1167964805bfe9b351063 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Fri, 10 Feb 2023 16:51:22 +0700 Subject: [PATCH] Actually, this should be enough --- .../mc/otm/compat/ExtendedInventoryHandler.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/compat/ExtendedInventoryHandler.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/compat/ExtendedInventoryHandler.kt index 2e1a2afdc..d27d2759c 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/compat/ExtendedInventoryHandler.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/compat/ExtendedInventoryHandler.kt @@ -186,6 +186,18 @@ private class FakeSlot : MatterySlot(SimpleContainer(1), 0, 0, 0) { override fun allowModification(p_150652_: Player): Boolean { return false } + + override fun isActive(): Boolean { + return false + } + + override fun getMaxStackSize(pStack: ItemStack): Int { + return 0 + } + + override fun getMaxStackSize(): Int { + return 0 + } } class InventoryScrollPacket(val scroll: Int) : MatteryPacket {