aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-09-02 21:57:08 +0200
committerDoKM <mcazzyman@gmail.com>2021-09-02 21:57:08 +0200
commit1ae37ce75ad3a47c47482aff977fb4bb25660d3e (patch)
treea9143a72bbb765cecee1dc036d20f8107df12891
parent74db72ad590c74b040d0800d411c4e1f1270a09a (diff)
downloadNotEnoughUpdates-1ae37ce75ad3a47c47482aff977fb4bb25660d3e.tar.gz
NotEnoughUpdates-1ae37ce75ad3a47c47482aff977fb4bb25660d3e.tar.bz2
NotEnoughUpdates-1ae37ce75ad3a47c47482aff977fb4bb25660d3e.zip
Fix a nullpointer exception in dwarven textures (untested)
but should do it
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java3
1 files changed, 3 insertions, 0 deletions
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<ChunkCoordIntPair, IgnoreColumn> map = loadedChunkData.get(pair);
+ if(map == null) {
+ return 0;
+ }
int modX = pos.getX() % 16;
int modZ = pos.getZ() % 16;