diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-01-11 08:02:40 -0700 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-01-11 08:02:40 -0700 |
commit | f665f430fc94165a8c2d01f7d09fc327eee66c58 (patch) | |
tree | c1b02017df39c903a917b71e32fae282b5d661e5 /util_execute_cycle.lua | |
parent | e682130266799f7b320a9b56964963bb348cc1cb (diff) |
fix bug in player-movement code, and also turn controller tints into a texture for easier modding by end users
Diffstat (limited to 'util_execute_cycle.lua')
-rw-r--r-- | util_execute_cycle.lua | 4 |
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 |