From 30718b325f93f32572af162bd730a328477a2cb7 Mon Sep 17 00:00:00 2001 From: Robbie Ferguson Date: Wed, 18 May 2016 17:17:05 -0400 Subject: [PATCH] Update init.lua --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index eb8a754..d62161d 100644 --- a/init.lua +++ b/init.lua @@ -221,7 +221,7 @@ local function tpj(player,param) return false end - local args = param:split(" ") + local args = param:split(" ") -- look into this. Can it crash if the player does not have two parameters? if #args < 2 then minetest.chat_send_player(player, "Usage. ") return false @@ -271,7 +271,7 @@ local function tpe(player) isnegative = negatives[math.random(2)] -- choose randomly whether this is this way or that distance = isnegative .. math.random(mindistance,maxdistance) -- the distance to jump axis = options[math.random(3)] - param = axis .. distance + param = axis .. " " .. distance tpj(param) end )