From 08880018a902a1d1d7a9242ef653359d008e0b44 Mon Sep 17 00:00:00 2001 From: Serhan Date: Mon, 5 Sep 2022 17:13:09 +0300 Subject: [PATCH] Update PriceInfoTooltip.java fix translatable messages for 1.19 --- .../xmrvizzy/skyblocker/skyblock/item/PriceInfoTooltip.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/xmrvizzy/skyblocker/skyblock/item/PriceInfoTooltip.java b/src/main/java/me/xmrvizzy/skyblocker/skyblock/item/PriceInfoTooltip.java index 21db3c2e28..9c681cb1c5 100644 --- a/src/main/java/me/xmrvizzy/skyblocker/skyblock/item/PriceInfoTooltip.java +++ b/src/main/java/me/xmrvizzy/skyblocker/skyblock/item/PriceInfoTooltip.java @@ -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)) { @@ -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)) {