From 617ab4c11a46de7fe48a3fb19e66ca9fcb2e00df Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Thu, 3 Oct 2024 17:07:33 +0200 Subject: [PATCH] fix: motd cutting on newer version --- MyMcRealms/Controllers/WorldsController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MyMcRealms/Controllers/WorldsController.cs b/MyMcRealms/Controllers/WorldsController.cs index 72b05c0..bcfdfc5 100644 --- a/MyMcRealms/Controllers/WorldsController.cs +++ b/MyMcRealms/Controllers/WorldsController.cs @@ -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 }