Fix an error with empty signs

Fixes #3
This commit is contained in:
Dan Mulloy 2016-08-20 16:08:46 -04:00
parent a13b2c9070
commit 02d18df559

View File

@ -81,7 +81,10 @@ public class ChestShopSign {
if (player == null) return false;
if (sign == null) return true;
return NameManager.canUseName(player, sign.getLine(NAME_LINE));
String name = sign.getLine(NAME_LINE);
if (name == null || name.isEmpty()) return true;
return NameManager.canUseName(player, name);
}
public static boolean isValidPreparedSign(String[] lines) {