mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2025-01-06 13:07:33 +01:00
Fix negative distances
This commit is contained in:
parent
2f82b11d9c
commit
a601838eba
2
init.lua
2
init.lua
@ -257,7 +257,7 @@ end
|
||||
local function tpe(name)
|
||||
local negatives = { '-','' } -- either it's this way or that way
|
||||
local isnegative = negatives[math.random(2)]
|
||||
local distance = negatives .. math.random(4,15) -- the distance to jump
|
||||
local distance = isnegative .. math.random(4,15) -- the distance to jump
|
||||
local times = math.random(3,6) -- how many times to jump - minimum,maximum
|
||||
local options = { 'x', 'y', 'z' }
|
||||
local axis = options[math.random(3)]
|
||||
|
Loading…
Reference in New Issue
Block a user