diff --git a/Leadercraft/Scoring/GameLoop.cs b/Leadercraft/Scoring/GameLoop.cs index 3b506c1..4a47ba4 100644 --- a/Leadercraft/Scoring/GameLoop.cs +++ b/Leadercraft/Scoring/GameLoop.cs @@ -33,8 +33,8 @@ namespace Leadercraft.Scoring private static void loopPass(EntitiesDB entitiesDB) { - if (localPlayer == null) localPlayer = new Player(PlayerType.Local); if (!State.IsPlayingGame) return; + if (localPlayer == null && Player.Exists(PlayerType.Local)) localPlayer = new Player(PlayerType.Local); FilteredChannelDataStruct[] channelInfo = entitiesDB.QueryEntities(CommonExclusiveGroups.OWNED_BLOCKS_GROUP).ToFastAccess(out uint count); for (uint i = 0; i < count; i++) {