Skip to content

Commit

Permalink
SPIGOT-7737: Add separate TreeType.MEGA_PINE
Browse files Browse the repository at this point in the history
  • Loading branch information
md-5 committed Jun 11, 2024
1 parent 0dae4c6 commit ee95e17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
+ } else if (worldgentreeabstract == TreeFeatures.MEGA_SPRUCE) {
+ BlockSapling.treeType = TreeType.MEGA_REDWOOD;
+ } else if (worldgentreeabstract == TreeFeatures.MEGA_PINE) {
+ BlockSapling.treeType = TreeType.MEGA_REDWOOD;
+ BlockSapling.treeType = TreeType.MEGA_PINE;
+ } else if (worldgentreeabstract == TreeFeatures.MEGA_JUNGLE_TREE) {
+ BlockSapling.treeType = TreeType.JUNGLE;
+ } else if (worldgentreeabstract == TreeFeatures.AZALEA_TREE) {
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/bukkit/craftbukkit/CraftRegionAccessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ public boolean generateTree(GeneratorAccessSeed access, ChunkGenerator chunkGene
gen = TreeFeatures.DARK_OAK;
break;
case MEGA_REDWOOD:
gen = TreeFeatures.MEGA_SPRUCE;
break;
case MEGA_PINE:
gen = TreeFeatures.MEGA_PINE;
break;
case TALL_BIRCH:
Expand Down

0 comments on commit ee95e17

Please sign in to comment.