1
0
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-11-23 14:38:21 -05:00

fix: motd cutting on newer version

This commit is contained in:
CyberL1 2024-10-03 17:07:33 +02:00
parent 88974eee33
commit 617ab4c11a

View File

@ -59,7 +59,10 @@ namespace MyMcRealms.Controllers
{ {
world.Motd = world.Motd.Remove(32); // Pre 1.19.4 MOTD limit 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 world.Motd = world.Motd.Remove(52); // Post 1.19.4 MOTD limit
} }