forked from minetest-mods/technic
Fix crash when quarrying a protected area
This commit is contained in:
parent
2d8ff45d9a
commit
bde49aca61
|
@ -103,7 +103,7 @@ local function quarry_dig(pos, center, size)
|
||||||
end
|
end
|
||||||
if minetest.is_protected and minetest.is_protected(digpos, owner) then
|
if minetest.is_protected and minetest.is_protected(digpos, owner) then
|
||||||
meta:set_int("enabled", 0)
|
meta:set_int("enabled", 0)
|
||||||
return
|
return {}
|
||||||
end
|
end
|
||||||
dig_y = digpos.y
|
dig_y = digpos.y
|
||||||
local node = minetest.get_node(digpos)
|
local node = minetest.get_node(digpos)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user