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

View File

@ -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)