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