mirror of
https://github.com/PaperMC/Paper.git
synced 2024-09-12 15:08:27 +02:00
[Bleeding] Correct issues with MEGA_REDWOOD trees. Fixes BUKKIT-5568
In commit 6efeddfe57, TALL_REDWOOD was used instead of the proper TreeType of MEGA_REDWOOD. Additionally, this fixes an issue in CraftWorld with an improper boolean flag related to the generation of MEGA_REDWOOD trees.
This commit is contained in:
parent
576758bc55
commit
d91ee7d7ab
@ -94,7 +94,7 @@ public class BlockSapling extends BlockPlant implements IBlockFragilePlantElemen
|
||||
for (i1 = 0; i1 >= -1; --i1) {
|
||||
for (j1 = 0; j1 >= -1; --j1) {
|
||||
if (this.a(world, i + i1, j, k + j1, 1) && this.a(world, i + i1 + 1, j, k + j1, 1) && this.a(world, i + i1, j, k + j1 + 1, 1) && this.a(world, i + i1 + 1, j, k + j1 + 1, 1)) {
|
||||
treeType = TreeType.TALL_REDWOOD; // CraftBukkit
|
||||
treeType = TreeType.MEGA_REDWOOD; // CraftBukkit
|
||||
object = new WorldGenMegaTree(false, random.nextBoolean());
|
||||
flag = true;
|
||||
break label78;
|
||||
|
@ -393,7 +393,7 @@ public class CraftWorld implements World {
|
||||
gen = new WorldGenForestTree(true);
|
||||
break;
|
||||
case MEGA_REDWOOD:
|
||||
gen = new WorldGenMegaTree(true, rand.nextBoolean());
|
||||
gen = new WorldGenMegaTree(false, rand.nextBoolean());
|
||||
break;
|
||||
case TALL_BIRCH:
|
||||
gen = new WorldGenForest(true, true);
|
||||
|
Loading…
Reference in New Issue
Block a user