Factorio 2.1 renamed the prototype field fuel_category (string)
to fuel_categories (array). Reading the old key now throws
instead of returning nil.
Error in game:
LuaItemPrototype doesn't contain key fuel_category
The mod still uses fuel_category in 6 places:
scripts/setup.lua:49
:groupBy(function(k,v) return v.fuel_category end)
scripts/setup.lua:297
if not defaultTrash[name] and item.fuel_category then
scripts/helpers.lua:63
if prototype.fuel_category then ...
scripts/cleanup.lua:267
entity.burner.fuel_inventory.get_item_count(
item.name) > 0 and prototype.fuel_category
scripts/drag.lua:315
(same pattern as cleanup.lua)
scripts/helpers/LuaControl.lua:169
storage.fuelList[prototype.fuel_category]
Suggested fix:
local fc = prototype.fuel_categories
if fc == nil or fc[1] == nil then return nil end
local category = fc[1]
Tested on: Factorio 2.1.24 (build 87808), space-age, ~240 mods.
Works after applying the above change, so this is the only blocker.