From b62b7eb04dfc4bcbc0a710cfd540a08eeac8e99d Mon Sep 17 00:00:00 2001 From: str1k3r <115313679+S1l3ntStr1ke87@users.noreply.github.com> Date: Sun, 23 Aug 2026 18:42:22 -0400 Subject: [PATCH] fix: sign over char limit crash --- Minecraft.World/SignTileEntity.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Minecraft.World/SignTileEntity.cpp b/Minecraft.World/SignTileEntity.cpp index 32f0780a..713727e9 100644 --- a/Minecraft.World/SignTileEntity.cpp +++ b/Minecraft.World/SignTileEntity.cpp @@ -167,8 +167,12 @@ void SignTileEntity::setChanged() void SignTileEntity::SetMessage(int iIndex,wstring &wsText) { + //str1kk3r - if we go over 15 chars, then cut it down to just 15 + if (wsText.length() > MAX_LINE_LENGTH) + { + wsText = wsText.substr(0, MAX_LINE_LENGTH); + } m_wsmessages[iIndex]=wsText; - } // 4J-PB - added for string verification