Sign notification adjustment.
No notifications when sign contains only spaces. Indentation of sign content.
This commit is contained in:
parent
f51d16bfa6
commit
62c3c997e2
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user