Files
sporel-lib-core.crafting/init.lua
Calic 357e7554a5 fix: resolve_locale de-dups sources and rejects malformed tables
Two silent-fail scenarios closed:
  - sources={c, c} would double-count in can_craft then partial-
    consume in craft. resolve_locale now de-duplicates by handle
    identity, preserving first-occurrence order.
  - {sink=x} without sources would wrap the table as Form-1 and
    crash deep inside inventory-list. resolve_locale now loud-
    errors with "locale table must contain 'sources' field"
    before reaching the bw-compat fallback.

Helper comment translated to English per code-language convention.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-14 19:29:46 +02:00

9.3 KiB