diff --git a/scripts/4_World/YALootBoxes_Manager.c b/scripts/4_World/YALootBoxes_Manager.c index bad29bc..590c16e 100644 --- a/scripts/4_World/YALootBoxes_Manager.c +++ b/scripts/4_World/YALootBoxes_Manager.c @@ -18,13 +18,13 @@ class YALootBoxesManager { protected ref array m_ActiveBoxes; protected ref array m_FreeLocationNames; // locations currently unused (the live pool) - protected ref map m_PlayerMessageCooldown; // playerId -> last message world time + protected ref map m_PlayerMessageCooldown; // player UID -> last message world time void YALootBoxesManager() { m_ActiveBoxes = new array(); m_FreeLocationNames = new array(); - m_PlayerMessageCooldown = new map(); + m_PlayerMessageCooldown = new map(); } void Init() @@ -192,7 +192,7 @@ class YALootBoxesManager if (!nearest) continue; // Light cooldown per player so we're not spamming every 1.5s - int playerId = player.GetIdentity().GetPlainId().HashCode(); + string playerId = player.GetIdentity().GetPlainId(); float lastShown = 0; m_PlayerMessageCooldown.Find(playerId, lastShown); if (now - lastShown < 4.0) continue;