add pipeworks support to overriden chest

This commit is contained in:
TenPlus1 2017-01-08 18:30:33 +00:00
parent 990a7e0d94
commit f5b10ac960

View File

@ -359,11 +359,17 @@ function fire.drop_items(pos, invstring)
end end
local groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}
if minetest.get_modpath("pipeworks") then
groups.tubedevice = 1
groups.tubedevice_receiver = 1
end
-- override chest node so that it's flammable -- override chest node so that it's flammable
minetest.override_item("default:chest", { minetest.override_item("default:chest", {
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, groups = groups,
on_burn = function(p) on_burn = function(p)
fire.drop_items(p, "main") fire.drop_items(p, "main")