mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2024-08-20 13:24:07 +02:00
Update init.lua
This commit is contained in:
parent
a601838eba
commit
aa537a6765
4
init.lua
4
init.lua
@ -213,7 +213,7 @@ local function tpr_accept(name, param)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Teleport Jump - Relative Position Teleportation by number of nodes
|
-- Teleport Jump - Relative Position Teleportation by number of nodes
|
||||||
local function tpj(name,param)
|
local function tpj(player,param)
|
||||||
local pname = minetest.get_player_by_name(player)
|
local pname = minetest.get_player_by_name(player)
|
||||||
|
|
||||||
if param == "" then
|
if param == "" then
|
||||||
@ -254,7 +254,7 @@ local function tpj(name,param)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Evade
|
-- Evade
|
||||||
local function tpe(name)
|
local function tpe(player)
|
||||||
local negatives = { '-','' } -- either it's this way or that way
|
local negatives = { '-','' } -- either it's this way or that way
|
||||||
local isnegative = negatives[math.random(2)]
|
local isnegative = negatives[math.random(2)]
|
||||||
local distance = isnegative .. math.random(4,15) -- the distance to jump
|
local distance = isnegative .. math.random(4,15) -- the distance to jump
|
||||||
|
Loading…
Reference in New Issue
Block a user