From 4d4a14b866e4a199d2c8f2f959d088af70ef7fcd Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Mon, 2 Jan 2012 02:32:40 -0500 Subject: [PATCH] Fixed bug in sign tile entity text setters --- SubstrateCS/Source/TileEntities/TileEntitySign.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SubstrateCS/Source/TileEntities/TileEntitySign.cs b/SubstrateCS/Source/TileEntities/TileEntitySign.cs index 70caab1..1c0c72b 100644 --- a/SubstrateCS/Source/TileEntities/TileEntitySign.cs +++ b/SubstrateCS/Source/TileEntities/TileEntitySign.cs @@ -30,25 +30,25 @@ namespace Substrate.TileEntities public string Text1 { get { return _text1; } - set { _text1 = value.Substring(0, 14); } + set { _text1 = value.Length > 14 ? value.Substring(0, 14) : value; } } public string Text2 { get { return _text2; } - set { _text2 = value.Substring(0, 14); } + set { _text2 = value.Length > 14 ? value.Substring(0, 14) : value; } } public string Text3 { get { return _text3; } - set { _text3 = value.Substring(0, 14); } + set { _text3 = value.Length > 14 ? value.Substring(0, 14) : value; } } public string Text4 { get { return _text4; } - set { _text4 = value.Substring(0, 14); } + set { _text4 = value.Length > 14 ? value.Substring(0, 14) : value; } } protected TileEntitySign (string id)