add hopper support, in case someone wants an eternal flame

This commit is contained in:
FaceDeer 2017-02-26 21:51:14 -07:00
parent 2ca6bb960b
commit 8856e6a206
2 changed files with 18 additions and 1 deletions

View File

@ -129,6 +129,14 @@ minetest.register_craft({
} }
}) })
if minetest.get_modpath("hopper") and hopper ~= nil and hopper.add_container ~= nil then
hopper:add_container({
{"top", "castle_lighting:brasier_floor", "fuel"},
{"bottom", "castle_lighting:brasier_floor", "fuel"},
{"side", "castle_lighting:brasier_floor", "fuel"},
})
end
------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------
-- Masonry brasiers -- Masonry brasiers
@ -233,6 +241,14 @@ castle_lighting.register_pillar_brasier = function(material)
{material.craft_material,material.craft_material,material.craft_material}, {material.craft_material,material.craft_material,material.craft_material},
}, },
}) })
if minetest.get_modpath("hopper") and hopper ~= nil and hopper.add_container ~= nil then
hopper:add_container({
{"top", mod_name..":"..material.name.."_pillar_brasier", "fuel"},
{"bottom", mod_name..":"..material.name.."_pillar_brasier", "fuel"},
{"side", mod_name..":"..material.name.."_pillar_brasier", "fuel"},
})
end
end end
for _, material in pairs(materials) do for _, material in pairs(materials) do

View File

@ -1,4 +1,5 @@
default default
intllib? intllib?
fire? fire?
castle_masonry? castle_masonry?
hopper?