Skip to content

Commit

Permalink
fix format of %
Browse files Browse the repository at this point in the history
  • Loading branch information
Windmill-City committed Sep 11, 2023
1 parent c3b2224 commit 93d2a75
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,8 @@ public void runCross(ICommandSender sender) {
CropChance.LOG.info("Cross simulate end!");

formatResult(sender);
} catch (IllegalArgumentException e) {
msg(sender, e.getMessage());
} catch (Exception e) {
CropChance.LOG.error("Exception throw during crossing", e);
CropChance.LOG.error("Exception thrown during crossing", e);
msgEx(sender, e);
}
});
Expand All @@ -148,12 +146,12 @@ public void formatResult(ICommandSender sender) {

c.addAttr("Weed", Weeded);
c.addAttr("Percent", 100f * Weeded / TryCross)
.text("%")
.text("%%")
.commit();

c.addAttr("Cross", Crossed);
c.addAttr("Percent", 100f * Crossed / TryCross)
.text("%")
.text("%%")
.commit();
c.addSeparator();
c.build();
Expand Down

0 comments on commit 93d2a75

Please sign in to comment.