mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-13 01:06:45 +00:00
Merge pull request #2453 from FlightControl-Master/master
Update Net.lua
This commit is contained in:
@@ -485,7 +485,7 @@ function NET:GetPlayerIDByName(Name)
|
|||||||
if not Name then return nil end
|
if not Name then return nil end
|
||||||
local playerList = net.get_player_list()
|
local playerList = net.get_player_list()
|
||||||
for i=1,#playerList do
|
for i=1,#playerList do
|
||||||
local playerName = net.get_name(i)
|
local playerName = net.get_name(playerList[i])
|
||||||
if playerName == Name then
|
if playerName == Name then
|
||||||
return playerList[i]
|
return playerList[i]
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user