summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/aizistral/nochatreports
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/aizistral/nochatreports')
-rw-r--r--src/main/java/com/aizistral/nochatreports/gui/AdvancedTooltip.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main/java/com/aizistral/nochatreports/gui/AdvancedTooltip.java b/src/main/java/com/aizistral/nochatreports/gui/AdvancedTooltip.java
index 20261c4..d4c7189 100644
--- a/src/main/java/com/aizistral/nochatreports/gui/AdvancedTooltip.java
+++ b/src/main/java/com/aizistral/nochatreports/gui/AdvancedTooltip.java
@@ -63,10 +63,13 @@ public class AdvancedTooltip extends Tooltip {
@Override
public List<FormattedCharSequence> toCharSequence(Minecraft minecraft) {
- if (this.cachedTooltip == null) {
- this.cachedTooltip = splitTooltip(minecraft, this.getMessage(), this.maxWidth);
- }
- return this.cachedTooltip;
+ if (this.supplier == null) {
+ if (this.cachedTooltip == null) {
+ this.cachedTooltip = splitTooltip(minecraft, this.getMessage(), this.maxWidth);
+ }
+ return this.cachedTooltip;
+ } else
+ return splitTooltip(minecraft, this.getMessage(), this.maxWidth);
}
public boolean hasCustomRender() {