diff options
author | Och Noe <och_noe@forksworld.de> | 2020-08-12 19:26:40 +0200 |
---|---|---|
committer | Och Noe <och_noe@forksworld.de> | 2020-08-12 19:26:40 +0200 |
commit | 717f418ea2ec08b1569e6b0fc76b070040d776b6 (patch) | |
tree | b689f454799d93abbd318bf2e311ebc43d1710ea | |
parent | 691b66140465dbe211c95033b3b786cd03d32a3f (diff) | |
download | cs_waypoints-717f418ea2ec08b1569e6b0fc76b070040d776b6.tar.gz cs_waypoints-717f418ea2ec08b1569e6b0fc76b070040d776b6.tar.bz2 cs_waypoints-717f418ea2ec08b1569e6b0fc76b070040d776b6.zip |
command was still commented out
command was not included
-rw-r--r-- | init.lua | 24 |
1 files changed, 15 insertions, 9 deletions
@@ -355,15 +355,15 @@ minetest.register_chatcommand('tw_push', { } ) --- minetest.register_chatcommand('wp_push', { --- params = '<position/player>', --- description = 'teleport to a position/player and save old position', --- func = safe(function(param) --- stack_push() --- minetest.run_server_chatcommand('teleport', param) --- end), --- } --- ) +minetest.register_chatcommand('wp_push', { + params = '<position/player>', + description = 'teleport to a position/player and save old position', + func = safe(function(param) + stack_push() + minetest.run_server_chatcommand('teleport', param) + end), + } + ) minetest.register_chatcommand('tw_pop', { params = '', @@ -372,6 +372,12 @@ minetest.register_chatcommand('tw_pop', { } ) +minetest.register_chatcommand('wp_pop', { + params = '', + description = 'return to the last saved position', + func = stack_pop, + } + ) minetest.register_chatcommand('wp_stack', { params = '', |