Sign notification adjustment.

No notifications when sign contains only spaces.  Indentation of sign
content.
This commit is contained in:
ryanhamshire 2015-01-13 18:25:33 -08:00
parent f51d16bfa6
commit 62c3c997e2

View File

@ -104,7 +104,8 @@ public class BlockEventHandler implements Listener
boolean notEmpty = false; boolean notEmpty = false;
for(int i = 0; i < event.getLines().length; i++) 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)); lines.append("\n " + event.getLine(i));
} }