ContentTweaker

ContentTweaker

27M Downloads

Replace behavior in .itemRightClick - item is not disappearing when calling .shrink on the stack

QuantumBlink1337 opened this issue ยท 2 comments

commented

It would appear that .shrink() does not delete an item if used in .itemRightClick.

I wrote this example script to illustrate the problem:
https://gist.github.com/QuantumBlink1337/58383118ecc0426e80b9733ef6f43683

In game, the item flickers, as if it were deleted, only to reappear again. Is .itemRightClick returning stack back or is there something wrong in my implementation?

commented

Try returning "SUCCESS" instead of "PASS"

commented

Just to piggyback on this, I tried stack.withAmount(0); and got a crash relating to a null value. https://paste.dimdev.org/ecehexepow.mccrash