Fixing K2 matter stuff #1

Merged
cacklingfiend merged 6 commits from pla/bzgold2:pla1 into main 2025-11-01 13:01:21 +01:00
Showing only changes of commit 4de0ae6962 - Show all commits

View file

@ -1,18 +1,20 @@
-- Matter recipes for Krastorio2 -- Matter recipes for Krastorio2
if mods["Krastorio2"] then if mods["Krastorio2"] then
local util = require("data-util"); local util = require("data-util")
util.k2matter({ if not data.raw.recipe["kr-gold-ore-to-matter"] then
k2matter = { util.k2matter({
material = { type = "item", name = "gold-ore", amount = 30 }, k2matter = {
item_name = "gold-ore", material = { type = "item", name = "gold-ore", amount = 30 },
matter_count = 30, item_name = "gold-ore",
energy_required = 10, matter_count = 30,
needs_stabilizer = false, energy_required = 10,
unlocked_by = "gold-matter-processing", needs_stabilizer = false,
}, unlocked_by = "gold-matter-processing",
icon = {icon = "__bzgold2__/graphics/icons/gold-ore.png", icon_size = 128, scale = 0.5} },
}) icon = {icon = "__bzgold2__/graphics/icons/gold-ore.png", icon_size = 128, scale = 0.5}
})
end
util.k2matter({ util.k2matter({
k2matter = { k2matter = {