Black hole talisman deletes items when trying to place blocks above world limit
Hyxaru opened this issue ยท 2 comments
You cannot place blocks above the world limit, but the black hole talisman believes it can.
Not currently in a position where I can edit the code but I can still suggest something.
Here, an item is popped from the talisman and placed into its own stack. Then Blargh, that won't work.Item.onItemUse(stack, ...)
is called, and stack
itself is promptly discarded. I propose that stack
is checked to see if it's empty, and if it isn't, it's either pushed into the black hole or placed into the inventory (if stack
is non-empty but no longer has the same item). (Or we use the return value of onItemUse()
, but I'm not quite sure about anything right now.)
<grammarnazi correcting="yrsegal">potatos->potatoes & ,->;</grammarnazi>
Ewwww, XMLCeption. bwaaa...