Translocator: Check for protection
This commit is contained in:
parent
d1443e1d09
commit
eea51cd260
1 changed files with 5 additions and 3 deletions
|
@ -381,9 +381,11 @@ local function trans_dig(pos, node, digger)
|
||||||
if not (pos and digger) then
|
if not (pos and digger) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
-------------------------------------
|
|
||||||
-- This needs to check for protection.
|
if minetest.is_protected(pos, digger:get_player_name()) then
|
||||||
-------------------------------------
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local id = meta:get_string('id')
|
local id = meta:get_string('id')
|
||||||
local data = { id = id }
|
local data = { id = id }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue