Browse Source

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

merge-requests/4/head
12Me21 1 year ago
parent
commit
9725fa2f28
4 changed files with 10 additions and 4 deletions
  1. +4
    -2
      compat-chests.lua
  2. +4
    -2
      compat-furnaces.lua
  3. +1
    -0
      filter-injector.lua
  4. +1
    -0
      wielder.lua

+ 4
- 2
compat-chests.lua View File

@@ -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 = {



+ 4
- 2
compat-furnaces.lua View File

@@ -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
})


+ 1
- 0
filter-injector.lua View File

@@ -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


+ 1
- 0
wielder.lua View File

@@ -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


Loading…
Cancel
Save