add ownership/protection handling for device configuration

take any available ownership into account before deciding on area protection
This commit is contained in:
Tim
2015-03-05 11:14:30 +01:00
parent 86ee58b17c
commit d167aacf4d
7 changed files with 45 additions and 17 deletions

View File

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