diff --git a/Minecraft-Realms-Emulator/Controllers/InvitesController.cs b/Minecraft-Realms-Emulator/Controllers/InvitesController.cs index 0458375..c51f24a 100644 --- a/Minecraft-Realms-Emulator/Controllers/InvitesController.cs +++ b/Minecraft-Realms-Emulator/Controllers/InvitesController.cs @@ -137,14 +137,10 @@ namespace Minecraft_Realms_Emulator.Controllers [HttpDelete("{wId}/invite/{uuid}")] public async Task> DeleteInvite(int wId, string uuid) { - Console.WriteLine($"{wId} - {uuid}"); - var world = await _context.Worlds.FirstOrDefaultAsync(w => w.Id == wId); if (world == null) return NotFound("World not found"); - var players = world.Players.ToList(); - var player = _context.Players.Where(p => p.World.Id == wId).FirstOrDefault(p => p.Uuid == uuid); _context.Players.Remove(player); @@ -168,8 +164,6 @@ namespace Minecraft_Realms_Emulator.Controllers if (world == null) return NotFound("World not found"); - var players = world.Players.ToList(); - var player = _context.Players.Where(p => p.World.Id == wId).FirstOrDefault(p => p.Uuid == playerUUID); _context.Players.Remove(player);