From ce52a805da551f4cef1b14beab58821887e349b9 Mon Sep 17 00:00:00 2001 From: Vixid <52578495+VixidDev@users.noreply.github.com> Date: Fri, 1 Sep 2023 11:30:26 +0100 Subject: Fix NPE disconnect when using DG 3.7.8 or earlier (#817) --- .../miscfeatures/world/CrystalHollowChestHighlighter.java | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit