recycling redo
This commit is contained in:
parent
1320759ab5
commit
af8089b1ed
3 changed files with 13 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ Version: 2.0.7
|
|||
Date: 2024-12-27
|
||||
Fixes:
|
||||
- Fix size of ore pictures
|
||||
- Ensure recycling changes always happen regardless of mod load order
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.0.6
|
||||
Date: 2024-12-27
|
||||
|
|
|
|||
|
|
@ -6,3 +6,6 @@ require("map-gen-preset-updates")
|
|||
require("strange-matter")
|
||||
require("compatibility/248k")
|
||||
require("compatibility/crafting-efficiency")
|
||||
|
||||
local util = require("data-util")
|
||||
util.redo_recycling()
|
||||
|
|
|
|||
|
|
@ -1356,4 +1356,13 @@ function util.set_vtk_dcm_ingredients()
|
|||
end
|
||||
end
|
||||
|
||||
-- Recalculate recycling recipes, since our mod might make updates after quality generates them
|
||||
function util.redo_recycling()
|
||||
if mods.quality then
|
||||
local recycling = require("__quality__.prototypes.recycling")
|
||||
for _, recipe in pairs(data.raw.recipe) do
|
||||
recycling.generate_recycling_recipe(recipe)
|
||||
end
|
||||
end
|
||||
end
|
||||
return util
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue