Closed codewarrior0 closed 7 years ago
Changing the stack size of the item prototype to zero causes it to become empty, making the drawer think it is no longer locked to an item. Instead of changing the size of a stack owned by the drawer, make a copy.
Furthermore, the ItemStack returned by getStoredItemPrototype() should not be modified for any reason.
getStoredItemPrototype()
This was a pain to debug.
This issue hadn't come to my attention yet, so thank you kindly for fixing it at the same time!
Changing the stack size of the item prototype to zero causes it to become empty, making the drawer think it is no longer locked to an item. Instead of changing the size of a stack owned by the drawer, make a copy.
Furthermore, the ItemStack returned by
getStoredItemPrototype()
should not be modified for any reason.This was a pain to debug.