oops
This commit is contained in:
parent
faba736bd7
commit
524c36aade
@ -170,8 +170,8 @@ abstract class EnhancedContainer<out S : IContainerSlot>(private val size: Int)
|
||||
val slot = element.getInt("slot")
|
||||
if (!seenSlots.add(slot)) continue
|
||||
|
||||
if ("item" in nbt) {
|
||||
ItemStack.OPTIONAL_CODEC.decode(ops, nbt["item"])
|
||||
if ("item" in element) {
|
||||
ItemStack.OPTIONAL_CODEC.decode(ops, element["item"])
|
||||
.map { it.first }
|
||||
.ifError { LOGGER.error("Failed to deserialize item stack in slot $slot: ${it.message()}") }
|
||||
.ifSuccess {
|
||||
|
Loading…
Reference in New Issue
Block a user