mirror of
https://github.com/CyberL1/Minecraft-Realms-Emulator.git
synced 2025-04-11 02:18:37 -04:00
Compare commits
No commits in common. "de45bf843e64eb3dd723a6123367caed604f8fa2" and "fe1c7aaf6377ec07ac76ea39de29d2e9e58a0a28" have entirely different histories.
de45bf843e
...
fe1c7aaf63
@ -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);
|
||||
}
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user