From 200c71cf95b23e5554ab88b04dc5642d1f28048d Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Wed, 21 Feb 2024 12:03:06 +0100 Subject: [PATCH] fix: check if player doesn't have a world --- Minecraft-Realms-Emulator/Controllers/WorldsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minecraft-Realms-Emulator/Controllers/WorldsController.cs b/Minecraft-Realms-Emulator/Controllers/WorldsController.cs index a3174d8..af15840 100644 --- a/Minecraft-Realms-Emulator/Controllers/WorldsController.cs +++ b/Minecraft-Realms-Emulator/Controllers/WorldsController.cs @@ -26,7 +26,7 @@ namespace Minecraft_Realms_Emulator.Controllers var worlds = await _context.Worlds.Where(w => w.OwnerUUID == playerUUID).ToListAsync(); - if (worlds == null) + if (worlds.ToArray().Length == 0) { var world = new World {