mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 13:07:06 +01:00
Fix growing large tress near world height. Fixes BUKKIT-1072
This commit is contained in:
parent
0153fe1f33
commit
3e382034e9
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ public class WorldGenBigTree extends WorldGenerator implements BlockSapling.Tree
|
||||||
|
|
||||||
static final byte[] a = new byte[] { (byte) 2, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 1};
|
static final byte[] a = new byte[] { (byte) 2, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 1};
|
||||||
Random b = new Random();
|
Random b = new Random();
|
||||||
BlockChangeDelegate world; // CraftBukkit
|
BlockChangeDelegate world; // CraftBukkit
|
||||||
int[] d = new int[] { 0, 0, 0};
|
int[] d = new int[] { 0, 0, 0};
|
||||||
int e = 0;
|
int e = 0;
|
||||||
int f;
|
int f;
|
||||||
|
@ -296,7 +296,7 @@ public class WorldGenBigTree extends WorldGenerator implements BlockSapling.Tree
|
||||||
aint3[b3] = MathHelper.floor((double) aint[b3] + (double) i * d1);
|
aint3[b3] = MathHelper.floor((double) aint[b3] + (double) i * d1);
|
||||||
int k = this.world.getTypeId(aint3[0], aint3[1], aint3[2]);
|
int k = this.world.getTypeId(aint3[0], aint3[1], aint3[2]);
|
||||||
|
|
||||||
if (k != 0 && k != 18) {
|
if ((k != 0 && k != 18) || aint3[1] >= 256) { // CraftBukkit - fix trees wrapping around
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue