Fixed bug in sign tile entity text setters

This commit is contained in:
Justin Aquadro 2012-01-02 02:32:40 -05:00
parent 31b739aa59
commit 4d4a14b866

View file

@ -30,25 +30,25 @@ namespace Substrate.TileEntities
public string Text1 public string Text1
{ {
get { return _text1; } get { return _text1; }
set { _text1 = value.Substring(0, 14); } set { _text1 = value.Length > 14 ? value.Substring(0, 14) : value; }
} }
public string Text2 public string Text2
{ {
get { return _text2; } get { return _text2; }
set { _text2 = value.Substring(0, 14); } set { _text2 = value.Length > 14 ? value.Substring(0, 14) : value; }
} }
public string Text3 public string Text3
{ {
get { return _text3; } get { return _text3; }
set { _text3 = value.Substring(0, 14); } set { _text3 = value.Length > 14 ? value.Substring(0, 14) : value; }
} }
public string Text4 public string Text4
{ {
get { return _text4; } get { return _text4; }
set { _text4 = value.Substring(0, 14); } set { _text4 = value.Length > 14 ? value.Substring(0, 14) : value; }
} }
protected TileEntitySign (string id) protected TileEntitySign (string id)