1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-18 15:40:25 +02:00

Updated pipeworks : HUD bug apparently fixed

- Automatic systems simulating players now check if the player they imitate exists
This commit is contained in:
LeMagnesium
2015-03-17 20:50:58 +01:00
parent e2bc63b91f
commit 547aae51c8
9 changed files with 48 additions and 19 deletions

View File

@ -57,6 +57,17 @@ function pipeworks.add_node_box(t, b)
end
end
function pipeworks.may_configure(pos, player)
local name = player:get_player_name()
local meta = minetest.get_meta(pos)
local owner = meta:get_string("owner")
if owner ~= "" then -- wielders and filters
return owner == name
end
return not minetest.is_protected(pos, name)
end
function pipeworks.node_is_owned(pos, placer)
local ownername = false
if type(IsPlayerNodeOwner) == "function" then -- node_ownership mod