Skip to content

Commit eb1c03f

Browse files
committed
Fix race condition with StatsGUI
With the 'current' set of changes, it looks like StatsGUI is calling recordingSensor before TLBE is notified that the player is created. This causes issues as playerSettings is not yet initialized.
1 parent dde9f20 commit eb1c03f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
---------------------------------------------------------------------------------------------------
2+
Version: 2.0.4
3+
4+
Bugfixes:
5+
- Fix race condition with StatsGUI.
6+
---------------------------------------------------------------------------------------------------
27
Version: 2.0.3
38
Date: 29-10-2024
49
Bugfixes:

scripts/camera.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ end
493493
function Camera.recordingSensor(player)
494494
local playerSettings = storage.playerSettings[player.index]
495495

496-
if not playerSettings.showCameraStatus then
496+
if playerSettings == nil or not playerSettings.showCameraStatus then
497497
return nil
498498
end
499499

0 commit comments

Comments
 (0)