1
0
forked from xjboss/KCauldronX

增加null检查

This commit is contained in:
聪聪 2017-07-13 22:47:42 +08:00
parent 4954c37706
commit 15861edb0d

View File

@ -0,0 +1,10 @@
--- ../src-base/minecraft/net/minecraft/world/gen/ChunkProviderGenerate.java
+++ ../src-work/minecraft/net/minecraft/world/gen/ChunkProviderGenerate.java
@@ -194,6 +194,7 @@
for (int l = 0; l < 16; ++l)
{
BiomeGenBase biomegenbase = p_147422_5_[l + k * 16];
+ if(biomegenbase==null) continue;
biomegenbase.genTerrainBlocks(this.worldObj, this.rand, p_147422_3_, p_147422_4_, p_147422_1_ * 16 + k, p_147422_2_ * 16 + l, this.stoneNoise[l + k * 16]);
}
}