Merge branch 'master' into 'master'

Add on-rotate to chests, furnaces, filter-injectors, dispenser, deployer, and node breaker

See merge request VanessaE/pipeworks!4
This commit is contained in:
Vanessa Dannenberg 2018-09-17 15:55:38 +00:00
commit 4c20de48b2
4 changed files with 10 additions and 4 deletions

@ -146,7 +146,8 @@ override_protected = {
input_inventory = "main", input_inventory = "main",
connect_sides = {left = 1, right = 1, back = 1, bottom = 1, top = 1} connect_sides = {left = 1, right = 1, back = 1, bottom = 1, top = 1}
}, },
after_dig_node = pipeworks.after_dig after_dig_node = pipeworks.after_dig,
on_rotate = pipeworks.on_rotate
} }
override = { override = {
tiles = { tiles = {
@ -190,7 +191,8 @@ override = {
connect_sides = {left = 1, right = 1, back = 1, bottom = 1, top = 1} connect_sides = {left = 1, right = 1, back = 1, bottom = 1, top = 1}
}, },
after_place_node = pipeworks.after_place, after_place_node = pipeworks.after_place,
after_dig_node = pipeworks.after_dig after_dig_node = pipeworks.after_dig,
on_rotate = pipeworks.on_rotate
} }
--[[local override_common = { --[[local override_common = {

@ -355,7 +355,8 @@ minetest.register_node(":default:furnace", {
meta:set_string("formspec", formspec) meta:set_string("formspec", formspec)
end, end,
after_place_node = pipeworks.after_place, after_place_node = pipeworks.after_place,
after_dig_node = pipeworks.after_dig after_dig_node = pipeworks.after_dig,
on_rotate = pipeworks.on_rotate
}) })
minetest.register_node(":default:furnace_active", { minetest.register_node(":default:furnace_active", {
@ -428,6 +429,7 @@ minetest.register_node(":default:furnace_active", {
meta:set_string("formspec", formspec) meta:set_string("formspec", formspec)
end, end,
after_place_node = pipeworks.after_place, after_place_node = pipeworks.after_place,
after_dig_node = pipeworks.after_dig after_dig_node = pipeworks.after_dig,
on_rotate = pipeworks.on_rotate
}) })

@ -383,6 +383,7 @@ for _, data in ipairs({
pipeworks.after_place(pos) pipeworks.after_place(pos)
end, end,
after_dig_node = pipeworks.after_dig, after_dig_node = pipeworks.after_dig,
on_rotate = pipeworks.on_rotate,
allow_metadata_inventory_put = function(pos, listname, index, stack, player) allow_metadata_inventory_put = function(pos, listname, index, stack, player)
if not pipeworks.may_configure(pos, player) then if not pipeworks.may_configure(pos, player) then
return 0 return 0

@ -234,6 +234,7 @@ local function register_wielder(data)
end end
pipeworks.scan_for_tube_objects(pos) pipeworks.scan_for_tube_objects(pos)
end, end,
on_rotate = pipeworks.on_rotate,
on_punch = data.fixup_node, on_punch = data.fixup_node,
allow_metadata_inventory_put = function(pos, listname, index, stack, player) allow_metadata_inventory_put = function(pos, listname, index, stack, player)
if not pipeworks.may_configure(pos, player) then return 0 end if not pipeworks.may_configure(pos, player) then return 0 end