Skip to content

Commit 907dafa

Browse files
attempt to fix attempt to index nil with 'GetName'
1 parent 57c4982 commit 907dafa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/EntityHandler.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ local function PlayerAdded(plr)
1818
end
1919
local function PlayerRemoving(plr)
2020
entityHandler.PlayerRemoving:Fire(playerList[plr])
21+
task.wait()
2122
playerList[plr] = nil
2223
end
2324
local function EntityAdded(ent)
@@ -26,6 +27,7 @@ local function EntityAdded(ent)
2627
end
2728
local function EntityRemoving(ent)
2829
entityHandler.EntityRemoving:Fire(entityList[ent])
30+
task.wait()
2931
entityList[ent] = nil
3032
end
3133

0 commit comments

Comments
 (0)