diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2023-02-05 23:41:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-05 22:41:13 +0000 |
commit | 5e77a5d07faa6bfced80eef06ce34d43661fcba4 (patch) | |
tree | 68baa5f20256ce64ae457a7d419e1767ce49ec94 /src/main/java | |
parent | d0f024a0cd2525bc4a79308c4f7275ea2a308ab2 (diff) | |
download | NotEnoughUpdates-5e77a5d07faa6bfced80eef06ce34d43661fcba4.tar.gz NotEnoughUpdates-5e77a5d07faa6bfced80eef06ce34d43661fcba4.tar.bz2 NotEnoughUpdates-5e77a5d07faa6bfced80eef06ce34d43661fcba4.zip |
Fixed NPE in CalendarOverlay (#582)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscgui/CalendarOverlay.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/CalendarOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/CalendarOverlay.java index 48d37f2f..87691631 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/CalendarOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/CalendarOverlay.java @@ -298,6 +298,7 @@ public class CalendarOverlay { boolean changed = false; for (int i = 0; i < 31; i++) { ItemStack item = cc.getLowerChestInventory().getStackInSlot(1 + (i % 7) + (i / 7) * 9); + if (item == null) continue; JsonArray array = new JsonArray(); if (item.getTagCompound() != null) { |