Fix IllegalStateException due to creating a FancyMessage with no args constructor resulting in first MessagePart having no text.
This commit is contained in:
parent
3c23e1078d
commit
f5b3628bc4
@ -85,7 +85,7 @@ public class CmdShow extends FCommand {
|
|||||||
|
|
||||||
if (currentAllies.toJSONString().length() > ARBITRARY_LIMIT) {
|
if (currentAllies.toJSONString().length() > ARBITRARY_LIMIT) {
|
||||||
allies.add(currentAllies);
|
allies.add(currentAllies);
|
||||||
currentAllies = new FancyMessage();
|
currentAllies = new FancyMessage("");
|
||||||
}
|
}
|
||||||
} else if (rel.isEnemy()) {
|
} else if (rel.isEnemy()) {
|
||||||
if (firstEnemy) {
|
if (firstEnemy) {
|
||||||
@ -97,7 +97,7 @@ public class CmdShow extends FCommand {
|
|||||||
|
|
||||||
if (currentEnemies.toJSONString().length() > ARBITRARY_LIMIT) {
|
if (currentEnemies.toJSONString().length() > ARBITRARY_LIMIT) {
|
||||||
enemies.add(currentEnemies);
|
enemies.add(currentEnemies);
|
||||||
currentEnemies = new FancyMessage();
|
currentEnemies = new FancyMessage("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user