add pipeworks support to overriden chest
This commit is contained in:
parent
990a7e0d94
commit
f5b10ac960
8
init.lua
8
init.lua
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user