Sign notification adjustment.
No notifications when sign contains only spaces. Indentation of sign content.
This commit is contained in:
parent
f51d16bfa6
commit
62c3c997e2
|
|
@ -104,8 +104,9 @@ 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;
|
||||
lines.append("\n" + event.getLine(i));
|
||||
String withoutSpaces = event.getLine(i).replace(" ", "");
|
||||
if(!withoutSpaces.isEmpty()) notEmpty = true;
|
||||
lines.append("\n " + event.getLine(i));
|
||||
}
|
||||
|
||||
String signMessage = lines.toString();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user