Fix crash when quarrying a protected area
authorShadowNinja <shadowninja@minetest.net>
Mon, 18 Nov 2013 20:27:17 +0000 (15:27 -0500)
committerShadowNinja <shadowninja@minetest.net>
Mon, 18 Nov 2013 20:27:17 +0000 (15:27 -0500)
technic/machines/HV/quarry.lua

index a62be8f2a8879fcb5538cd2932937852eebd5e63..15b66622b6744915bd6abbe4468c422ca4d1fa4d 100644 (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)