mirror of
https://github.com/CyberL1/Minecraft-Realms-Emulator.git
synced 2024-11-21 21:58:21 -05:00
fix: check if player doesn't have a world
This commit is contained in:
parent
05a3967799
commit
200c71cf95
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user