SPIGOT-7737: Add separate TreeType.MEGA_PINE

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2024-06-11 21:04:56 +10:00
parent 92a9fb31be
commit 1ded727925
2 changed files with 4 additions and 1 deletions

View file

@ -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) {

View file

@ -244,6 +244,9 @@ public abstract class CraftRegionAccessor implements RegionAccessor {
gen = TreeFeatures.DARK_OAK;
break;
case MEGA_REDWOOD:
gen = TreeFeatures.MEGA_SPRUCE;
break;
case MEGA_PINE:
gen = TreeFeatures.MEGA_PINE;
break;
case TALL_BIRCH: