ContentTweaker icon indicating copy to clipboard operation
ContentTweaker copied to clipboard

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

Open QuantumBlink1337 opened this issue 3 years ago • 2 comments

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?

QuantumBlink1337 avatar Apr 27 '21 21:04 QuantumBlink1337

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

QuantumBlink1337 avatar Apr 29 '21 14:04 QuantumBlink1337

Try returning "SUCCESS" instead of "PASS"

brisingraerowing avatar Aug 04 '22 02:08 brisingraerowing