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. Fully featured integration with Bobs Mods, Industrial Revolution, and Fantario (independently, not simultaneously)

Content
23 days ago
0.13 - 1.1
56.2K
Manufacturing

g [Fixed] Bug with recipes which have icons field instead of icon (7.0.0)

4 years ago

Both .icon and .icons are supported by the game, yet you check only for .icon in func.lua line 191. This causes a failure when you copy the icon & icon size over from the ingredient to the recipe, without setting .icons to nil, in case the size of the icons is less than the the new .icon_size.
Changing line 191 to
'if not recipe.icon and not recipe.icons then'
solves the issue.

4 years ago

Ahh, I see what you mean. Nice catch, that must have been a pretty difficult bug to find. Adding the fix to the next update

4 years ago
(updated 4 years ago)

Happened when using with angelspetrochem as it adds recipes with .icons tag. Hard to trace to the root cause, but I managed.
For reference: https://github.com/Arch666Angel/mods/issues/20

4 years ago
(updated 4 years ago)

Decided to upload it now, since I'm not actually sure when I can finish the next update. Many thanks for bringing this up to my attention and even fixing the issue.

New response