mirror of
https://github.com/CyberL1/Minecraft-Realms-Emulator.git
synced 2024-11-22 06:08:22 -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();
|
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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user