Fix crash when quarrying a protected area

This commit is contained in:
ShadowNinja 2013-11-18 15:27:17 -05:00
parent 2d8ff45d9a
commit bde49aca61
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ local function quarry_dig(pos, center, size)
end
if minetest.is_protected and minetest.is_protected(digpos, owner) then
meta:set_int("enabled", 0)
return
return {}
end
dig_y = digpos.y
local node = minetest.get_node(digpos)