Skip to content

highest cp will no longer be less than current cp#37

Merged
Owen1212055 merged 21 commits intoMCDiamondFire:masterfrom
emeryllium:master
Apr 20, 2021
Merged

highest cp will no longer be less than current cp#37
Owen1212055 merged 21 commits intoMCDiamondFire:masterfrom
emeryllium:master

Conversation

@emeryllium
Copy link
Contributor

very small bugfix probably not worth owen's time sorry

@Owen1212055
Copy link
Contributor

I recommend making a new branch. You kinda pushed a lot more commits than you meant to.

@emeryllium
Copy link
Contributor Author

I recommend making a new branch. You kinda pushed a lot more commits than you meant to.
oh.

.run((tableSet) -> {
if (!tableSet.isEmpty()) {
embed.addField("Highest Point Count", FormatUtil.formatNumber(tableSet.getResult().getInt("points")), false);
if (Integer.getInteger(genPointMetric(points, uuid)) > Integer.getInteger(FormatUtil.formatNumber(tableSet.getResult().getInt("points")))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Integer.getInteger() will not work with these methods. I recommend adding a variable names points that stores tableSet.getResult().getInt("points") and then topPoint which stores getPointMetric(). You then can compare these numbers instead of using Integer.getInteger()

@emeryllium emeryllium requested a review from Owen1212055 April 16, 2021 13:57
@Owen1212055 Owen1212055 merged commit 38f8a17 into MCDiamondFire:master Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants