ContentTweaker
ContentTweaker copied to clipboard
Replace behavior in .itemRightClick - item is not disappearing when calling .shrink on the stack
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?
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
Try returning "SUCCESS" instead of "PASS"