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

This commit is contained in:
12Me21 2018-09-17 11:44:15 -04:00
parent 25c00a6e05
commit 9725fa2f28
4 changed files with 10 additions and 4 deletions

@ -146,7 +146,8 @@ override_protected = {
input_inventory = "main",
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 = {
tiles = {
@ -190,7 +191,8 @@ override = {
connect_sides = {left = 1, right = 1, back = 1, bottom = 1, top = 1}
},
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 = {

@ -355,7 +355,8 @@ minetest.register_node(":default:furnace", {
meta:set_string("formspec", formspec)
end,
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", {
@ -428,6 +429,7 @@ minetest.register_node(":default:furnace_active", {
meta:set_string("formspec", formspec)
end,
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)
end,
after_dig_node = pipeworks.after_dig,
on_rotate = pipeworks.on_rotate,
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
if not pipeworks.may_configure(pos, player) then
return 0

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