From bc3d3a61b830aefe0cb24352ad8ff8c33e66aa5e Mon Sep 17 00:00:00 2001 From: yuesha-yc Date: Thu, 2 Jan 2025 18:33:46 +0800 Subject: [PATCH] Fix tooltip --- .../content/climate/render/TemperatureGoogleRenderer.java | 2 +- src/main/resources/assets/frostedheart/lang/en_us/en_us.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/teammoeg/frostedheart/content/climate/render/TemperatureGoogleRenderer.java b/src/main/java/com/teammoeg/frostedheart/content/climate/render/TemperatureGoogleRenderer.java index a0a5e1ac8..3fe2b0ab0 100644 --- a/src/main/java/com/teammoeg/frostedheart/content/climate/render/TemperatureGoogleRenderer.java +++ b/src/main/java/com/teammoeg/frostedheart/content/climate/render/TemperatureGoogleRenderer.java @@ -159,7 +159,7 @@ public static void renderOverlay(ForgeGui gui, GuiGraphics graphics, float parti boolean addedBlockTempInfo = false; // block temperature if (wearingTemperatureProbe && hasBlockTempInfo) { - boolean isNotLit = state.hasProperty(BlockStateProperties.LIT) && state.getValue(BlockStateProperties.LIT); + boolean isNotLit = state.hasProperty(BlockStateProperties.LIT) && !state.getValue(BlockStateProperties.LIT); boolean requiresLit = blockData.isLit(); List stats = BlockTempStats.getStats(block, null, mc.player); if (!stats.isEmpty() && !(requiresLit && isNotLit)) { diff --git a/src/main/resources/assets/frostedheart/lang/en_us/en_us.json b/src/main/resources/assets/frostedheart/lang/en_us/en_us.json index 0e522fa72..3757aa605 100644 --- a/src/main/resources/assets/frostedheart/lang/en_us/en_us.json +++ b/src/main/resources/assets/frostedheart/lang/en_us/en_us.json @@ -415,7 +415,7 @@ "tooltip.frostedheart.holdForDescription": "Hold [%1$s] for Summary", "tooltip.frostedheart.holdForControls": "Hold [%1$s] for Controls", "tooltip.frostedheart.holdForTemperature": "Hold [%1$s] for Temperature Info", - "tooltip.frostedheart.holdForNutrition": "Hold [%1%s] for Nutrition Info", + "tooltip.frostedheart.holdForNutrition": "Hold [%1$s] for Nutrition Info", "tooltip.frostedheart.keyShift": "Shift", "tooltip.frostedheart.keyCtrl": "Ctrl", "tooltip.frostedheart.keyS": "S",