Sign notification adjustment.

No notifications when sign contains only spaces.  Indentation of sign
content.
This commit is contained in:
ryanhamshire committed 2015-01-13 18:25:33 -08:00
1 parent f51d16bfa6
commit 62c3c997e2
1 file changed
+2 -1
@@ -104,7 +104,8 @@ public class BlockEventHandler implements Listener
boolean notEmpty = false;
for(int i = 0; i < event.getLines().length; i++)
{
if(event.getLine(i).length() != 0) notEmpty = true;
String withoutSpaces = event.getLine(i).replace(" ", "");
if(!withoutSpaces.isEmpty()) notEmpty = true;
lines.append("\n " + event.getLine(i));
}