mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2025-01-08 14:07:28 +01:00
Bug fix
This commit is contained in:
parent
bb4fc51090
commit
0faca079e4
6
init.lua
6
init.lua
@ -156,6 +156,12 @@ local function tpr_accept(name, param)
|
||||
|
||||
local requester = minetest.env:get_player_by_name(sender)
|
||||
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 = accepter:getpos()
|
||||
p = find_free_position_near(p)
|
||||
|
Loading…
Reference in New Issue
Block a user