mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2025-01-22 21:01:25 +01:00
Buf fix
This commit is contained in:
parent
0faca079e4
commit
42d4bc82e7
6
init.lua
6
init.lua
@ -202,6 +202,12 @@ local function tpr_accept(name, param)
|
||||
|
||||
local requester = minetest.env:get_player_by_name(sender2)
|
||||
local accepter = minetest.env:get_player_by_name(name)
|
||||
|
||||
-- Could happen if either player disconnects; if so just abort
|
||||
if requester == nil or accepter == nil then
|
||||
return
|
||||
end
|
||||
|
||||
local p = nil
|
||||
p = requester:getpos()
|
||||
p = find_free_position_near(p)
|
||||
|
Loading…
Reference in New Issue
Block a user