mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#NET
* Fix for ucid can be nil
This commit is contained in:
parent
80fa8c1c05
commit
7ae9fa3225
@ -42,7 +42,7 @@ do
|
|||||||
-- @field #NET
|
-- @field #NET
|
||||||
NET = {
|
NET = {
|
||||||
ClassName = "NET",
|
ClassName = "NET",
|
||||||
Version = "0.1.0",
|
Version = "0.1.1",
|
||||||
BlockTime = 600,
|
BlockTime = 600,
|
||||||
BlockedPilots = {},
|
BlockedPilots = {},
|
||||||
BlockedUCIDs = {},
|
BlockedUCIDs = {},
|
||||||
@ -196,7 +196,7 @@ function NET:_EventHandler(EventData)
|
|||||||
|
|
||||||
-- Get Player Data
|
-- Get Player Data
|
||||||
local name = data.IniPlayerName and data.IniPlayerName or data.IniUnit:GetPlayerName()
|
local name = data.IniPlayerName and data.IniPlayerName or data.IniUnit:GetPlayerName()
|
||||||
local ucid = self:GetPlayerUCID(nil,name)
|
local ucid = self:GetPlayerUCID(nil,name) or "none"
|
||||||
local PlayerID = self:GetPlayerIDByName(name) or "none"
|
local PlayerID = self:GetPlayerIDByName(name) or "none"
|
||||||
local PlayerSide, PlayerSlot = self:GetSlot(data.IniUnit)
|
local PlayerSide, PlayerSlot = self:GetSlot(data.IniUnit)
|
||||||
local TNow = timer.getTime()
|
local TNow = timer.getTime()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user