try to load_area() on quarry dig

This commit is contained in:
Thomas Rudin 2019-04-09 18:16:27 +02:00
parent 55c343b0a8
commit 0886117328

View File

@ -203,6 +203,9 @@ local function quarry_run(pos, node)
vector.multiply(pdir, rp)),
vector.multiply(qdir, rq))
local can_dig = true
minetest.load_area(digpos);
if can_dig and minetest.is_protected and minetest.is_protected(digpos, owner) then
can_dig = false
end