From 8c72940c23e568c5a10c122eafcab3d02f5a32d9 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Fri, 13 Dec 2024 21:41:33 +0100 Subject: [PATCH] fix: minigane name on world configuration screen --- .../Modes/External/WorldsController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Minecraft-Realms-Emulator/Modes/External/WorldsController.cs b/Minecraft-Realms-Emulator/Modes/External/WorldsController.cs index e36eda8..d9c4788 100644 --- a/Minecraft-Realms-Emulator/Modes/External/WorldsController.cs +++ b/Minecraft-Realms-Emulator/Modes/External/WorldsController.cs @@ -419,7 +419,7 @@ namespace Minecraft_Realms_Emulator.Modes.External string cookie = Request.Headers.Cookie; string gameVersion = cookie.Split(";")[2].Split("=")[1]; - var world = await _context.Worlds.Include(w => w.Players).Include(w => w.Subscription).Include(w => w.Slots).Include(w => w.ParentWorld.Subscription).FirstOrDefaultAsync(w => w.Id == wId); + var world = await _context.Worlds.Include(w => w.Players).Include(w => w.Subscription).Include(w => w.Slots).Include(w => w.ParentWorld.Subscription).Include(w => w.Minigame).FirstOrDefaultAsync(w => w.Id == wId); if (world.State == nameof(StateEnum.UNINITIALIZED)) { @@ -721,7 +721,7 @@ namespace Minecraft_Realms_Emulator.Modes.External slot.CommandBlocks = body.CommandBlocks; _context.SaveChanges(); - + return Ok(true); } @@ -854,7 +854,7 @@ namespace Minecraft_Realms_Emulator.Modes.External var totalTemplates = _context.Templates.Where(t => t.Type == type).Count(); var templates = _context.Templates.Where(t => t.Type == type).Skip((page - 1) * pageSize).Take(pageSize).ToList(); - TemplatesResponse templatesResponse = new() + TemplatesResponse templatesResponse = new() { Page = page, Size = pageSize,