Fixed crash when calling "rewind" command in a render callback

This commit is contained in:
Wofsauge committed 2026-01-25 00:19:16 +01:00
1 parent 714da580b8
commit f3fa5a463a
1 file changed
+1
+1
View File
@@ -1738,6 +1738,7 @@ end
EID:AddCallback(ModCallbacks.MC_POST_GAME_STARTED, OnGameStartGeneral)
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
end
EID:AddCallback(ModCallbacks.MC_POST_PLAYER_INIT, OnPostPlayerInit)