[2.0.23] Items doesn't trigger spoil effect if spoiled during crafting
Posted: Tue Dec 03, 2024 8:00 am
If an item with spoilable results is spoiled before crafting finishes, its trigger effect won't trigger.
How to reproduce:
1. Add a mod with following code in data.lua:
2. Build a infinity chest test setup with the recipe crafting those two items, and observe:
No biter is spawned from the captive biter spawner recipe, and nothing is outputted.
Jellynut processing outputs spoilage. What should happen:
Biter captive spawner recipe should instantly generate a behemoth biter.
Or alternatively:
Spoil trigger only activates when it appears in the output slot.
How to reproduce:
1. Add a mod with following code in data.lua:
Code: Select all
data.raw.item["captive-biter-spawner"].spoil_ticks = 1
data.raw.capsule["jelly"].spoil_ticks = 1
No biter is spawned from the captive biter spawner recipe, and nothing is outputted.
Jellynut processing outputs spoilage. What should happen:
Biter captive spawner recipe should instantly generate a behemoth biter.
Or alternatively:
Spoil trigger only activates when it appears in the output slot.