Check if K2 matter conversion is already done for gold ore (Error with ThemTharHills)

This commit is contained in:
pla 2025-10-25 19:11:45 +02:00
parent 230d085856
commit 4de0ae6962
No known key found for this signature in database

View file

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