summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2013-11-18 15:27:17 -0500
committerShadowNinja <shadowninja@minetest.net>2013-11-18 15:27:17 -0500
commitbde49aca61254c3e342a04fafc6bae9cd82da610 (patch)
tree423eb089b0fd413539c3fd4866d7720f218e86e7
parent2d8ff45d9a3bcc3a327544705724aadd7b89ceb8 (diff)
Fix crash when quarrying a protected area
-rw-r--r--technic/machines/HV/quarry.lua2
1 files changed, 1 insertions, 1 deletions
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)