Botania Unofficial

Botania Unofficial

795k Downloads

Black hole talisman deletes items when trying to place blocks above world limit

Hyxaru opened this issue ยท 2 comments

commented

You cannot place blocks above the world limit, but the black hole talisman believes it can.

commented

It's been clicking on too many tiny potatos, it believes in itself too much

commented

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 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.) Blargh, that won't work.

<grammarnazi correcting="yrsegal">potatos-&gt;potatoes &amp; ,-&gt;;</grammarnazi>
Ewwww, XMLCeption. bwaaa...