damn
This commit is contained in:
parent
d17e64f335
commit
17dfa953db
@ -98,6 +98,7 @@ abstract class EnhancedContainer<out S : IContainerSlot>(private val size: Int)
|
|||||||
items[slot] = ItemStack.EMPTY
|
items[slot] = ItemStack.EMPTY
|
||||||
notifySlotChanged(slot, observedItems[slot])
|
notifySlotChanged(slot, observedItems[slot])
|
||||||
observedItems[slot] = ItemStack.EMPTY
|
observedItems[slot] = ItemStack.EMPTY
|
||||||
|
bitmap[slot] = false
|
||||||
|
|
||||||
return item
|
return item
|
||||||
}
|
}
|
||||||
@ -107,6 +108,7 @@ abstract class EnhancedContainer<out S : IContainerSlot>(private val size: Int)
|
|||||||
items[slot] = itemStack
|
items[slot] = itemStack
|
||||||
notifySlotChanged(slot, observedItems[slot])
|
notifySlotChanged(slot, observedItems[slot])
|
||||||
observedItems[slot] = itemStack.copy()
|
observedItems[slot] = itemStack.copy()
|
||||||
|
bitmap[slot] = itemStack.isNotEmpty
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user