aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVixid <52578495+VixidDev@users.noreply.github.com>2023-09-01 11:30:26 +0100
committerGitHub <noreply@github.com>2023-09-01 20:30:26 +1000
commitce52a805da551f4cef1b14beab58821887e349b9 (patch)
tree987479870837ed025a75ac8d82fae37aab5819fd /src
parentae35ab03ca4dbf7a902106f15f6e537fa86c0480 (diff)
downloadNotEnoughUpdates-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')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/CrystalHollowChestHighlighter.java1
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);
}