From f5b10ac9603b6c3586d1cb82c98b4c5e64aa662e Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 8 Jan 2017 18:30:33 +0000 Subject: [PATCH] add pipeworks support to overriden chest --- init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 06c076b..09adef6 100644 --- a/init.lua +++ b/init.lua @@ -359,11 +359,17 @@ function fire.drop_items(pos, invstring) 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 minetest.override_item("default:chest", { - groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, + groups = groups, on_burn = function(p) fire.drop_items(p, "main")