Compare commits

..

No commits in common. "de45bf843e64eb3dd723a6123367caed604f8fa2" and "fe1c7aaf6377ec07ac76ea39de29d2e9e58a0a28" have entirely different histories.

2 changed files with 4 additions and 6 deletions

View File

@ -517,6 +517,7 @@ namespace Minecraft_Realms_Emulator.Modes.External
var connection = new Connection
{
World = world,
Address = defaultServerAddress.Value
};
Slot slot = new()
@ -678,7 +679,7 @@ namespace Minecraft_Realms_Emulator.Modes.External
return BadRequest(errorResponse);
}
if (body.Description?.Length > 32)
if (body.Description.Length > 32)
{
ErrorResponse errorResponse = new()
{
@ -824,10 +825,7 @@ namespace Minecraft_Realms_Emulator.Modes.External
[HttpGet("v1/{wId}/join/pc")]
public ActionResult<Connection> Join(int wId)
{
var connection = _context.Connections.Include(c => c.World).FirstOrDefault(x => x.World.Id == wId);
// Set the server's addrees to its MOTD
connection.Address = connection.World.Motd;
var connection = _context.Connections.FirstOrDefault(x => x.World.Id == wId);
return Ok(connection);
}

View File

@ -731,7 +731,7 @@ namespace Minecraft_Realms_Emulator.Modes.Realms.Controllers
return BadRequest(errorResponse);
}
if (body.Description?.Length > 32)
if (body.Description.Length > 32)
{
ErrorResponse errorResponse = new()
{