1
1
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2025-04-02 14:08:36 -04:00

Compare commits

...

2 Commits

Author SHA1 Message Date
2245a95d55 chore: fix a typo 2024-10-03 17:10:03 +02:00
617ab4c11a fix: motd cutting on newer version 2024-10-03 17:07:33 +02:00
2 changed files with 5 additions and 2 deletions

View File

@ -59,7 +59,10 @@ namespace MyMcRealms.Controllers
{
world.Motd = world.Motd.Remove(32); // Pre 1.19.4 MOTD limit
}
else if (world.Motd.Length > 52)
}
else
{
if (world.Motd.Length > 52)
{
world.Motd = world.Motd.Remove(52); // Post 1.19.4 MOTD limit
}

View File

@ -41,7 +41,7 @@ namespace Minecraft_Realms_Emulator.Middlewares
ErrorResponse errorResponse = new()
{
ErrorCode = 403,
ErrorMsg = "This world isn't owner by anyone"
ErrorMsg = "This world isn't owned by anyone"
};
httpContext.Response.StatusCode = 403;