mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 09:26:08 +03:00
17 lines
1002 B
Diff
17 lines
1002 B
Diff
--- ../src-base/minecraft/net/minecraft/world/gen/structure/MapGenStronghold.java
|
|
+++ ../src-work/minecraft/net/minecraft/world/gen/structure/MapGenStronghold.java
|
|
@@ -147,8 +147,12 @@
|
|
double d0 = 4.0D * this.distance + this.distance * (double)j * 6.0D + (random.nextDouble() - 0.5D) * this.distance * 2.5D;
|
|
int j1 = (int)Math.round(Math.cos(d1) * d0);
|
|
int k1 = (int)Math.round(Math.sin(d1) * d0);
|
|
- BlockPos blockpos = this.worldObj.getBiomeProvider().findBiomePosition((j1 << 4) + 8, (k1 << 4) + 8, 112, this.allowedBiomes, random);
|
|
+ BlockPos blockpos = null;
|
|
+ try {
|
|
+ blockpos = this.worldObj.getBiomeProvider().findBiomePosition((j1 << 4) + 8, (k1 << 4) + 8, 112, this.allowedBiomes, random);
|
|
+ }catch (ArrayIndexOutOfBoundsException e){
|
|
|
|
+ }
|
|
if (blockpos != null)
|
|
{
|
|
j1 = blockpos.getX() >> 4;
|