766aafa72b
Reconstructing a stack by transferring items from another stack into an empty one, and then re-serializing, can cause the fields to end up in a different order in serialization, which causes a false positive detecting stack changes, which cause another recheck, leading to a stack overflow. Compare objects structurally, i.e. their key/value pairs, rather than relying on stable serialization. The old method only worked reliably in the case of objects having only one meta field, which accidentally had worked out most of the time, but doesn't work well with some mods, e.g. cats that have both a name and furball metadata.
288 KiB
1536x960px
288 KiB
1536x960px