Merge pull request #2453 from FlightControl-Master/master

Update Net.lua
This commit is contained in:
Thomas
2025-11-24 09:35:23 +01:00
committed by GitHub
+1 -1
View File
@@ -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