From a8784db5b2f31b6c7970e11657c57ec6dc322e8d Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Sun, 17 Jul 2022 12:15:46 +0200 Subject: [PATCH] update player state booleans - they default to false now --- .../kotlin/dev/adamko/kafkatorio/webmap/state/playerState.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/state/playerState.kt b/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/state/playerState.kt index 7cd71ab..c659521 100644 --- a/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/state/playerState.kt +++ b/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/state/playerState.kt @@ -149,8 +149,8 @@ sealed interface PlayerProperties { val surfaceIndex = update.surfaceIndex ?: this.surfaceIndex val colour = update.colour ?: this.colour val name = update.name ?: this.name - val isConnected = update.isConnected ?: false - val isShowOnMap = update.isShowOnMap ?: false + val isConnected = update.isConnected + val isShowOnMap = update.isShowOnMap return when { position != null