Add files via upload

This commit is contained in:
loosewheel
2022-07-12 19:58:17 +10:00
committed by GitHub
parent 108abd4485
commit 391d8e1393
8 changed files with 156 additions and 51 deletions

View File

@@ -253,8 +253,13 @@ end
local function break_node (pos, range)
local node = minetest.get_node_or_nil (pos)
local meta = minetest.get_meta (pos)
if node then
if meta and minetest.is_protected (pos, meta:get_string ("owner")) then
return
end
local breakpos = get_break_pos (pos, node.param2, range)
if breakpos then