This commit is contained in:
Evert Prants 2018-07-29 16:06:20 +03:00
parent ea58027dad
commit cd9a802c1b
No known key found for this signature in database
GPG Key ID: 1688DA83D222D0B5

@ -60,7 +60,7 @@ for mat, data in pairs(elepd.registered_dusts) do
if keyword == "_ingot" and not kwfound then
kwfound = found
elseif keyword == "_block" or keyword == "block" and not block_map[mat] then
block_map[mat] = data.item
block_map[mat] = found
end
-- Grind recipe for material
@ -110,13 +110,13 @@ elepm.register_craft({
-----------------
for mat, ingot in pairs(ingot_map) do
local plate = "elepower_dynamics:" .. mat .. "_plate"
local plate = elepd.registered_plates[mat]
if minetest.registered_items[plate] then
if plate then
elepm.register_craft({
type = "compress",
recipe = { ingot .. " 2" },
output = plate,
output = plate.item,
time = 4,
})
end