mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-07-26 11:57:16 +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
|
||||
local playerList = net.get_player_list()
|
||||
for i=1,#playerList do
|
||||
local playerName = net.get_name(i)
|
||||
local playerName = net.get_name(playerList[i])
|
||||
if playerName == Name then
|
||||
return playerList[i]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user