diff options
author | Vixid <52578495+VixidDev@users.noreply.github.com> | 2023-09-01 11:30:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 20:30:26 +1000 |
commit | ce52a805da551f4cef1b14beab58821887e349b9 (patch) | |
tree | 987479870837ed025a75ac8d82fae37aab5819fd /src/main | |
parent | ae35ab03ca4dbf7a902106f15f6e537fa86c0480 (diff) | |
download | NotEnoughUpdates-ce52a805da551f4cef1b14beab58821887e349b9.tar.gz NotEnoughUpdates-ce52a805da551f4cef1b14beab58821887e349b9.tar.bz2 NotEnoughUpdates-ce52a805da551f4cef1b14beab58821887e349b9.zip |
Fix NPE disconnect when using DG 3.7.8 or earlier (#817)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/CrystalHollowChestHighlighter.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/CrystalHollowChestHighlighter.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/CrystalHollowChestHighlighter.java index f9f526b1..61c96aad 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/CrystalHollowChestHighlighter.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/CrystalHollowChestHighlighter.java @@ -50,6 +50,7 @@ public class CrystalHollowChestHighlighter extends GenericBlockHighlighter { public static void processBlockChangePacket(S23PacketBlockChange packetIn) { BlockPos pos = packetIn.getBlockPosition(); + if (packetIn.blockState == null) return; checkForChest(pos, packetIn.blockState); } |