diff --git a/Barotrauma/BarotraumaClient/ClientSource/Networking/EntitySpawner.cs b/Barotrauma/BarotraumaClient/ClientSource/Networking/EntitySpawner.cs index f8c7e7d45..239150c38 100644 --- a/Barotrauma/BarotraumaClient/ClientSource/Networking/EntitySpawner.cs +++ b/Barotrauma/BarotraumaClient/ClientSource/Networking/EntitySpawner.cs @@ -23,7 +23,7 @@ namespace Barotrauma /// /// Clears all received events from the queue. /// - partial void ResetReceivedEvents() + void ResetReceivedEvents() { while (receivedEventsQueue.TryDequeue(out _)) { } } diff --git a/Barotrauma/BarotraumaShared/SharedSource/Map/Levels/Level.cs b/Barotrauma/BarotraumaShared/SharedSource/Map/Levels/Level.cs index d0ddf3fe9..f4d5e5d6a 100644 --- a/Barotrauma/BarotraumaShared/SharedSource/Map/Levels/Level.cs +++ b/Barotrauma/BarotraumaShared/SharedSource/Map/Levels/Level.cs @@ -5189,7 +5189,7 @@ namespace Barotrauma UnsyncedExtraWalls = null; } - tempCells?.Clear(); + tempCellsLocal?.Value?.Clear(); cells = null; cellGrid = null;