Add clear recipe to all registered tanks
This commit is contained in:
parent
8a8962d9e0
commit
6280bab23b
@ -152,6 +152,18 @@ local function create_tank_node(tankname, def, fluid_name)
|
||||
end
|
||||
|
||||
fluid_lib.register_node(tankname)
|
||||
|
||||
if srcnode then
|
||||
if srcnode:match("^:") then
|
||||
srcnode = srcnode:sub(2)
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = srcnode,
|
||||
recipe = { tankname },
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
function fluid_tanks.register_tank(tankname, def)
|
||||
|
Loading…
Reference in New Issue
Block a user