Check for size 0 StringBuilder size.

This commit is contained in:
sigonasr2 2016-08-05 23:49:06 -05:00
parent 2e1eaeba37
commit 94e4645e85
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -790,7 +790,9 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
finalstring.append(TwosideKeeper.log_messages.get(i)+"\n");
}
TwosideKeeper.log_messages.clear();
DiscordMessageSender.sendToSpam(finalstring.toString());
if (finalstring.length()>0) {
DiscordMessageSender.sendToSpam(finalstring.toString());
}
}
private double subtractVanillaArmorBar(ItemStack[] armorContents) {