Fix mining drill digging in the wrong direction
authorShadowNinja <shadowninja@minetest.net>
Mon, 23 Dec 2013 21:54:21 +0000 (16:54 -0500)
committerShadowNinja <shadowninja@minetest.net>
Mon, 23 Dec 2013 21:54:21 +0000 (16:54 -0500)
technic/tools/mining_drill.lua

index d7eb49cf050765328465eaa179f47b9b7a0856ce..320cc31f274699645bac33c37be5cff4e7c8792c 100644 (file)
@@ -172,9 +172,9 @@ local function drill_dig_it(pos, player, drill_type, mode)
                end
                if dir==3 then  -- z-
                        drill_dig_it0 (pos,player)
-                       pos.z=pos.z+1
+                       pos.z=pos.z-1
                        drill_dig_it0 (pos,player)
-                       pos.z=pos.z+1
+                       pos.z=pos.z-1
                        drill_dig_it0 (pos,player)
                end
        end