Skip to content

Commit

Permalink
Update PriceInfoTooltip.java
Browse files Browse the repository at this point in the history
fix translatable messages for 1.19
  • Loading branch information
Fix3dll authored Sep 5, 2022
1 parent 22b5ae6 commit 0888001
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static void onInjectTooltip(ItemStack stack, TooltipContext context, List
if (SkyblockerConfig.get().general.itemTooltip.enableLowestBIN && !bazaarOpened && !bazaarExist) {
if (lowestPricesJson == null) {
if (!nullMsgSend) {
client.player.sendMessage(Text.literal("skyblocker.itemTooltip.nullMessage"), false);
client.player.sendMessage(Text.translatable("skyblocker.itemTooltip.nullMessage"), false);
nullMsgSend = true;
}
} else if (lowestPricesJson.has(name)) {
Expand All @@ -106,7 +106,7 @@ public static void onInjectTooltip(ItemStack stack, TooltipContext context, List
if (SkyblockerConfig.get().general.itemTooltip.enableAvgBIN) {
if (threeDayAvgPricesJson == null || oneDayAvgPricesJson == null) {
if (!nullMsgSend) {
client.player.sendMessage(Text.literal("skyblocker.itemTooltip.nullMessage"), false);
client.player.sendMessage(Text.translatable("skyblocker.itemTooltip.nullMessage"), false);
nullMsgSend = true;
}
} else if (threeDayAvgPricesJson.has(name) || oneDayAvgPricesJson.has(name)) {
Expand Down

0 comments on commit 0888001

Please sign in to comment.