mirror of
https://gitlab.icynet.eu/evert/fluid_lib.git
synced 2024-12-18 11:15:43 +01:00
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
|
end
|
||||||
|
|
||||||
fluid_lib.register_node(tankname)
|
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
|
end
|
||||||
|
|
||||||
function fluid_tanks.register_tank(tankname, def)
|
function fluid_tanks.register_tank(tankname, def)
|
||||||
|
Loading…
Reference in New Issue
Block a user