Reverse Factory

by Kryzeth

Reverse Factory machine will recycle (uncraft) nearly any item placed inside. Supports the recycling of most, if not all, modded items.

Content
14 days ago
0.13 - 2.0
67.6K
Manufacturing

b [Fixed] Error when used with Pacifist

3 months ago
(updated 3 months ago)

Hi Kryzeth, I encountered the following bug when running alongside with Pacifist mod:

Reverse Factory version 9.0.34
Pacifist version 2.2.9

Error:

Failed to load mods: __reverse-factory__/func.lua:108: attempt to index local 'item' (a nil value)
stack traceback:
    __reverse-factory__/func.lua:108: in function 'makeRecipe'
    __reverse-factory__/data-final-fixes.lua:30: in function 'final_fixes'
    __reverse-factory__/data-final-fixes.lua:60: in main chunk

I fixed it locally by adding if item then in data-final-fixes.lua line 27.

3 months ago

The logic was not actually the problem here; for the automated process, there are many other checks in place that would fail long before a nil item could get to the make_recipe function.

The main problem was Pacifist mod removing the gun item and recipe, which I added a manual recycling recipe for, without checking if the pistol item and/or recipe existed. Fixed in v9.0.35

3 months ago

Thanks. It's working :D

New response