diff options
author | DoKM <mcazzyman@gmail.com> | 2021-09-02 21:57:08 +0200 |
---|---|---|
committer | DoKM <mcazzyman@gmail.com> | 2021-09-02 21:57:08 +0200 |
commit | 1ae37ce75ad3a47c47482aff977fb4bb25660d3e (patch) | |
tree | a9143a72bbb765cecee1dc036d20f8107df12891 /src | |
parent | 74db72ad590c74b040d0800d411c4e1f1270a09a (diff) | |
download | NotEnoughUpdates-1ae37ce75ad3a47c47482aff977fb4bb25660d3e.tar.gz NotEnoughUpdates-1ae37ce75ad3a47c47482aff977fb4bb25660d3e.tar.bz2 NotEnoughUpdates-1ae37ce75ad3a47c47482aff977fb4bb25660d3e.zip |
Fix a nullpointer exception in dwarven textures (untested)
but should do it
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java | 3 |
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; |