Fixed crash when calling "rewind" command in a render callback
This commit is contained in:
1 parent
714da580b8
commit
f3fa5a463a
1 file changed
+1
@@ -1738,6 +1738,7 @@ end
|
|||||||
EID:AddCallback(ModCallbacks.MC_POST_GAME_STARTED, OnGameStartGeneral)
|
EID:AddCallback(ModCallbacks.MC_POST_GAME_STARTED, OnGameStartGeneral)
|
||||||
|
|
||||||
local function OnPostPlayerInit()
|
local function OnPostPlayerInit()
|
||||||
|
EID:setPlayer() -- re-evaluate player list. Fixes crash when using "rewind" command in a MC_POST_RENDER callback
|
||||||
EID.ShouldCheckStartingItems = true -- for The Stars? tracking
|
EID.ShouldCheckStartingItems = true -- for The Stars? tracking
|
||||||
end
|
end
|
||||||
EID:AddCallback(ModCallbacks.MC_POST_PLAYER_INIT, OnPostPlayerInit)
|
EID:AddCallback(ModCallbacks.MC_POST_PLAYER_INIT, OnPostPlayerInit)
|
||||||
|
|||||||
Reference in new issue
Block a user