From: ShadowNinja Date: Mon, 18 Nov 2013 20:27:17 +0000 (-0500) Subject: Fix crash when quarrying a protected area X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=bde49aca61254c3e342a04fafc6bae9cd82da610;p=zefram%2Fminetest%2Ftechnic.git Fix crash when quarrying a protected area --- diff --git a/technic/machines/HV/quarry.lua b/technic/machines/HV/quarry.lua index a62be8f..15b6662 100644 --- a/technic/machines/HV/quarry.lua +++ b/technic/machines/HV/quarry.lua @@ -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)