forked from xjboss/KCauldronX
增加null检查
This commit is contained in:
parent
4954c37706
commit
15861edb0d
@ -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]);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user