parent
691b661404
commit
717f418ea2
24
init.lua
24
init.lua
|
@ -355,15 +355,15 @@ minetest.register_chatcommand('tw_push', {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
-- minetest.register_chatcommand('wp_push', {
|
minetest.register_chatcommand('wp_push', {
|
||||||
-- params = '<position/player>',
|
params = '<position/player>',
|
||||||
-- description = 'teleport to a position/player and save old position',
|
description = 'teleport to a position/player and save old position',
|
||||||
-- func = safe(function(param)
|
func = safe(function(param)
|
||||||
-- stack_push()
|
stack_push()
|
||||||
-- minetest.run_server_chatcommand('teleport', param)
|
minetest.run_server_chatcommand('teleport', param)
|
||||||
-- end),
|
end),
|
||||||
-- }
|
}
|
||||||
-- )
|
)
|
||||||
|
|
||||||
minetest.register_chatcommand('tw_pop', {
|
minetest.register_chatcommand('tw_pop', {
|
||||||
params = '',
|
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', {
|
minetest.register_chatcommand('wp_stack', {
|
||||||
params = '',
|
params = '',
|
||||||
|
|
Loading…
Reference in New Issue