From 9725fa2f2823cd2cd510226e10b4ee3d6c3169d7 Mon Sep 17 00:00:00 2001 From: 12Me21 <12Me21.mc@gmail.com> Date: Mon, 17 Sep 2018 11:44:15 -0400 Subject: [PATCH] Add on-rotate to chests, furnaces, filter-injector, dispenser, deployer, and node breaker --- compat-chests.lua | 6 ++++-- compat-furnaces.lua | 6 ++++-- filter-injector.lua | 1 + wielder.lua | 1 + 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/compat-chests.lua b/compat-chests.lua index 78d865b..eb681c8 100644 --- a/compat-chests.lua +++ b/compat-chests.lua @@ -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 = { diff --git a/compat-furnaces.lua b/compat-furnaces.lua index 492332a..83f9012 100644 --- a/compat-furnaces.lua +++ b/compat-furnaces.lua @@ -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 }) diff --git a/filter-injector.lua b/filter-injector.lua index a8659ad..cf1fc74 100644 --- a/filter-injector.lua +++ b/filter-injector.lua @@ -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 diff --git a/wielder.lua b/wielder.lua index 4a80d3e..102f0bf 100644 --- a/wielder.lua +++ b/wielder.lua @@ -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