From 1ae37ce75ad3a47c47482aff977fb4bb25660d3e Mon Sep 17 00:00:00 2001 From: DoKM Date: Thu, 2 Sep 2021 21:57:08 +0200 Subject: Fix a nullpointer exception in dwarven textures (untested) but should do it --- .../moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java index 735243d3..b05c430d 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java @@ -160,6 +160,9 @@ public class DwarvenMinesTextures { } if(loadedChunkData.get(pair) != null) { HashMap map = loadedChunkData.get(pair); + if(map == null) { + return 0; + } int modX = pos.getX() % 16; int modZ = pos.getZ() % 16; -- cgit