From d167aacf4d2cdcc98914cd05153b81e709e0eaa7 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 5 Mar 2015 11:14:30 +0100 Subject: add ownership/protection handling for device configuration take any available ownership into account before deciding on area protection --- vacuum_tubes.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'vacuum_tubes.lua') diff --git a/vacuum_tubes.lua b/vacuum_tubes.lua index f987589..2c14781 100644 --- a/vacuum_tubes.lua +++ b/vacuum_tubes.lua @@ -47,6 +47,7 @@ if pipeworks.enable_mese_sand_tube then meta:set_string("infotext", "Adjustable Vacuuming Pneumatic Tube Segment") end, on_receive_fields = function(pos,formname,fields,sender) + if not pipeworks.may_configure(pos, sender) then return end local meta = minetest.get_meta(pos) local dist = tonumber(fields.dist) if dist then -- cgit v1.2.3