diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/Slots/SlotsController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/Slots/SlotsController.cs index 1607dbee..519c6742 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/Slots/SlotsController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/Slots/SlotsController.cs @@ -73,7 +73,7 @@ public class SlotsController : ControllerBase { slots.Add(new GameDeveloperSlot { - SlotId = slotId, + InternalSlotId = slotId, }); continue; } diff --git a/ProjectLighthouse/Types/Serialization/GameDeveloperSlot.cs b/ProjectLighthouse/Types/Serialization/GameDeveloperSlot.cs index be59f663..ae0aaed0 100644 --- a/ProjectLighthouse/Types/Serialization/GameDeveloperSlot.cs +++ b/ProjectLighthouse/Types/Serialization/GameDeveloperSlot.cs @@ -32,6 +32,8 @@ public class GameDeveloperSlot : SlotBase, INeedsPreparationForSerialization public async Task PrepareSerialization(DatabaseContext database) { + if (this.SlotId == 0 || this.InternalSlotId == 0) return; + var stats = await database.Slots.Where(s => s.SlotId == this.SlotId) .Select(_ => new {