1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-04-14 23:03:11 +00:00
Jonathan Coates 0069591af9
Fix overflow when converting recursive objects to Lua
In cdcd82679c8e286738afd6f19d1d9ed845dcd2aa, we rewrote the Lua
conversion function to update the "Java -> Lua" mapping after
conversion, rather than part way through.

This made the code a little cleaner (as we only updated the mapping in
one place), but is entirely incorrect — we need to store the object
first, in order to correctly handle recursive objects — otherwise we'll
just recurse infinitely (or until we overflow).

This partially reverts the above commit, while preserving the new
behaviour for singleton collections.

Fixes #1955.
2024-08-25 09:24:10 +01:00
..
2024-08-17 11:39:14 +01:00
2024-08-15 21:19:13 +01:00
2024-06-26 18:07:57 +01:00
2024-06-19 09:57:56 +01:00
2023-10-28 17:58:11 +01:00