fix: check if player doesn't have a world

This commit is contained in:
CyberL1 2024-02-21 12:03:06 +01:00
parent 05a3967799
commit 200c71cf95

View File

@ -26,7 +26,7 @@ namespace Minecraft_Realms_Emulator.Controllers
var worlds = await _context.Worlds.Where(w => w.OwnerUUID == playerUUID).ToListAsync(); var worlds = await _context.Worlds.Where(w => w.OwnerUUID == playerUUID).ToListAsync();
if (worlds == null) if (worlds.ToArray().Length == 0)
{ {
var world = new World var world = new World
{ {