mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-10-26 14:24:57 +00:00
null check chunk extensions to not cause errors with chunk pregenerator (#11)
This commit is contained in:
1 parent
fcb9063f2f
commit
3145cccd70
1 file changed
+2
-1
@@ -43,7 +43,8 @@ public abstract class WorldExtension {
|
||||
}
|
||||
|
||||
protected final void saveChunkData(Chunk chunk, NBTTagCompound tag) {
|
||||
chunkMap.get(chunk).saveData(tag);
|
||||
final ChunkExtension extension = chunkMap.get(chunk);
|
||||
if (extension != null) extension.saveData(tag);
|
||||
}
|
||||
|
||||
protected final void remChunk(Chunk chunk) {
|
||||
|
||||
Reference in new issue
Block a user