summaryrefslogtreecommitdiff
path: root/util_execute_cycle.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util_execute_cycle.lua')
-rw-r--r--util_execute_cycle.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util_execute_cycle.lua b/util_execute_cycle.lua
index 080c0ae..4199782 100644
--- a/util_execute_cycle.lua
+++ b/util_execute_cycle.lua
@@ -247,7 +247,7 @@ digtron.execute_dig_cycle = function(pos, clicker)
pos = digtron.find_new_pos(pos, facing)
meta = minetest.get_meta(pos)
if move_player then
- clicker:moveto(digtron.find_new_pos(player_pos, facing), true)
+ clicker:moveto(digtron.find_new_pos(clicker:getpos(), facing), true)
end
local building_fuel_cost = 0
@@ -359,7 +359,7 @@ digtron.execute_move_cycle = function(pos, clicker)
local oldpos = {x=pos.x, y=pos.y, z=pos.z}
pos = digtron.find_new_pos(pos, facing)
if move_player then
- clicker:moveto(digtron.find_new_pos(player_pos, facing), true)
+ clicker:moveto(digtron.find_new_pos(clicker:getpos(), facing), true)
end
return pos, "", 0