mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2024-09-12 08:18:32 +02:00
Update init.lua
This commit is contained in:
parent
664b03135c
commit
be7441143a
2
init.lua
2
init.lua
@ -72,9 +72,11 @@ local function tpc_send(player,coordinates)
|
|||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if posx ~= nil or posy ~= nil or posz ~= nil then
|
||||||
posx = tonumber(posx) + 0.0
|
posx = tonumber(posx) + 0.0
|
||||||
posy = tonumber(posy) + 0.0
|
posy = tonumber(posy) + 0.0
|
||||||
posz = tonumber(posz) + 0.0
|
posz = tonumber(posz) + 0.0
|
||||||
|
end
|
||||||
|
|
||||||
if posx > 32765 or posx < -32765 or posy > 32765 or posy < -32765 or posz > 32765 or posz < -32765 then
|
if posx > 32765 or posx < -32765 or posy > 32765 or posy < -32765 or posz > 32765 or posz < -32765 then
|
||||||
minetest.chat_send_player(pname, "Error: Invalid coordinates.")
|
minetest.chat_send_player(pname, "Error: Invalid coordinates.")
|
||||||
|
Loading…
Reference in New Issue
Block a user