This commit is contained in:
DBotThePony 2025-03-22 15:28:11 +07:00
parent d17e64f335
commit 17dfa953db
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -98,6 +98,7 @@ abstract class EnhancedContainer<out S : IContainerSlot>(private val size: Int)
items[slot] = ItemStack.EMPTY
notifySlotChanged(slot, observedItems[slot])
observedItems[slot] = ItemStack.EMPTY
bitmap[slot] = false
return item
}
@ -107,6 +108,7 @@ abstract class EnhancedContainer<out S : IContainerSlot>(private val size: Int)
items[slot] = itemStack
notifySlotChanged(slot, observedItems[slot])
observedItems[slot] = itemStack.copy()
bitmap[slot] = itemStack.isNotEmpty
}
}