From 717f418ea2ec08b1569e6b0fc76b070040d776b6 Mon Sep 17 00:00:00 2001 From: Och Noe Date: Wed, 12 Aug 2020 19:26:40 +0200 Subject: command was still commented out command was not included --- init.lua | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/init.lua b/init.lua index 13a2398..5f4d90b 100644 --- a/init.lua +++ b/init.lua @@ -355,15 +355,15 @@ minetest.register_chatcommand('tw_push', { } ) --- minetest.register_chatcommand('wp_push', { --- params = '', --- 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 = '', + 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 = '', -- cgit v1.2.3