aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscgui
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-09-08 17:00:49 +0200
committerGitHub <noreply@github.com>2022-09-08 17:00:49 +0200
commitd3805f080af87eb2bc7d2a2eac6c3f8db539324f (patch)
tree2aaf95a14d1cb82096c1c2d675ebe6b7147dab48 /src/main/java/io/github/moulberry/notenoughupdates/miscgui
parent827acac6fcf836c1dba5bea338f726694951d18e (diff)
downloadnotenoughupdates-d3805f080af87eb2bc7d2a2eac6c3f8db539324f.tar.gz
notenoughupdates-d3805f080af87eb2bc7d2a2eac6c3f8db539324f.tar.bz2
notenoughupdates-d3805f080af87eb2bc7d2a2eac6c3f8db539324f.zip
0.14 - Finished :) (#233)
Co-authored-by: nopo <noahogno@gmail.com> Co-authored-by: jani270 <69345714+jani270@users.noreply.github.com> Co-authored-by: Ascynx <78341107+Ascynx@users.noreply.github.com> Co-authored-by: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Co-authored-by: Lulonaut <lulonaut@tutanota.de>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscgui')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java4
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/TrophyRewardOverlay.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java
index b6c3e763..530dcfd1 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java
@@ -847,7 +847,7 @@ public class AccessoryBagOverlay {
if (info != null)
cost1 = info.craftCost;
else
- cost1 = 0;
+ cost1 = -1;
}
double cost2;
JsonObject o2Auc = NotEnoughUpdates.INSTANCE.manager.auctionManager.getItemAuctionInfo(o2);
@@ -858,7 +858,7 @@ public class AccessoryBagOverlay {
if (info != null)
cost2 = info.craftCost;
else
- cost2 = 0;
+ cost2 = -1;
}
if (cost1 == -1 && cost2 == -1) return o1.compareTo(o2);
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/TrophyRewardOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/TrophyRewardOverlay.java
index 2b600d2e..e6c4dc74 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/TrophyRewardOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/TrophyRewardOverlay.java
@@ -70,7 +70,7 @@ public class TrophyRewardOverlay {
* This adds support for the /neureloadrepo command
*/
@SubscribeEvent(priority = EventPriority.LOWEST)
- public void reload(RepositoryReloadEvent event) {
+ public void onRepoReload(RepositoryReloadEvent event) {
reloadNeeded = true;
}