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
abbcd56a6b
commit
31f1ba75a5
2
init.lua
2
init.lua
@ -96,7 +96,7 @@ local function tpc_send(player,coordinates)
|
|||||||
|
|
||||||
minetest.chat_send_player(player, 'Teleporting to '..posx..','..posy..','..posz)
|
minetest.chat_send_player(player, 'Teleporting to '..posx..','..posy..','..posz)
|
||||||
minetest.sound_play("tps_portal", {pos = target_coords, gain = 1.0, max_hear_distance = 10})
|
minetest.sound_play("tps_portal", {pos = target_coords, gain = 1.0, max_hear_distance = 10})
|
||||||
pname:setpos(target_coords)
|
pname:setpos(find_free_position_near(target_coords))
|
||||||
end
|
end
|
||||||
|
|
||||||
local function tpr_deny(name)
|
local function tpr_deny(name)
|
||||||
|
Loading…
Reference in New Issue
Block a user