diff options
author | Anthony Hilyard <anthony.hilyard@gmail.com> | 2021-10-11 22:52:58 -0700 |
---|---|---|
committer | Anthony Hilyard <anthony.hilyard@gmail.com> | 2021-10-11 22:52:58 -0700 |
commit | 0eb0e8504684ad9e7bdae99a54de618809cee8d4 (patch) | |
tree | fdac5271bde7d3f1166de532313903b9b86c5094 /src/main/java/com/anthonyhilyard/iceberg/util/Tooltips.java | |
parent | 8c02a2a7e0d2e2951cdc6a4382a6aa8f235ec63b (diff) | |
download | Iceberg-0eb0e8504684ad9e7bdae99a54de618809cee8d4.tar.gz Iceberg-0eb0e8504684ad9e7bdae99a54de618809cee8d4.tar.bz2 Iceberg-0eb0e8504684ad9e7bdae99a54de618809cee8d4.zip |
Fixed a null pointer exception during tooltip calculation. Fixed a
compatibility issue with advancement-related mods.
Diffstat (limited to 'src/main/java/com/anthonyhilyard/iceberg/util/Tooltips.java')
-rw-r--r-- | src/main/java/com/anthonyhilyard/iceberg/util/Tooltips.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/anthonyhilyard/iceberg/util/Tooltips.java b/src/main/java/com/anthonyhilyard/iceberg/util/Tooltips.java index bc5f081..d111ae5 100644 --- a/src/main/java/com/anthonyhilyard/iceberg/util/Tooltips.java +++ b/src/main/java/com/anthonyhilyard/iceberg/util/Tooltips.java @@ -234,7 +234,7 @@ public class Tooltips int screenWidth, int screenHeight, int maxTextWidth, FontRenderer font) { Rectangle2d rect = new Rectangle2d(0, 0, 0, 0); - if (textLines.isEmpty()) + if (textLines == null || textLines.isEmpty() || stack == null) { return rect; } |