Fix IllegalStateException due to creating a FancyMessage with no args constructor resulting in first MessagePart having no text.

This commit is contained in:
Evan Lindsay 2015-03-31 02:43:05 -07:00
parent 3c23e1078d
commit f5b3628bc4

View File

@ -85,7 +85,7 @@ public class CmdShow extends FCommand {
if (currentAllies.toJSONString().length() > ARBITRARY_LIMIT) {
allies.add(currentAllies);
currentAllies = new FancyMessage();
currentAllies = new FancyMessage("");
}
} else if (rel.isEnemy()) {
if (firstEnemy) {
@ -97,7 +97,7 @@ public class CmdShow extends FCommand {
if (currentEnemies.toJSONString().length() > ARBITRARY_LIMIT) {
enemies.add(currentEnemies);
currentEnemies = new FancyMessage();
currentEnemies = new FancyMessage("");
}
}
}