mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
#1494: TreeType - add missing pale oak trees
By: shanebeee <shanebolenback@me.com>
This commit is contained in:
parent
0821d18951
commit
e1673f9708
@ -53,7 +53,7 @@
|
||||
WorldGenFeatureConfigured<?, ?> worldgenfeatureconfigured1 = (WorldGenFeatureConfigured) holder1.value();
|
||||
IBlockData iblockdata2 = worldserver.getFluidState(blockposition).createLegacyBlock();
|
||||
|
||||
@@ -165,11 +173,62 @@
|
||||
@@ -165,11 +173,66 @@
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -102,6 +102,10 @@
|
||||
+ BlockSapling.treeType = TreeType.TALL_MANGROVE;
|
||||
+ } else if (worldgentreeabstract == TreeFeatures.CHERRY || worldgentreeabstract == TreeFeatures.CHERRY_BEES_005) {
|
||||
+ BlockSapling.treeType = TreeType.CHERRY;
|
||||
+ } else if (worldgentreeabstract == TreeFeatures.PALE_OAK) {
|
||||
+ BlockSapling.treeType = TreeType.PALE_OAK;
|
||||
+ } else if (worldgentreeabstract == TreeFeatures.PALE_OAK_CREAKING) {
|
||||
+ BlockSapling.treeType = TreeType.PALE_OAK_CREAKING;
|
||||
+ } else {
|
||||
+ throw new IllegalArgumentException("Unknown tree generator " + worldgentreeabstract);
|
||||
+ }
|
||||
|
@ -274,6 +274,12 @@ public abstract class CraftRegionAccessor implements RegionAccessor {
|
||||
case CHERRY:
|
||||
gen = TreeFeatures.CHERRY;
|
||||
break;
|
||||
case PALE_OAK:
|
||||
gen = TreeFeatures.PALE_OAK;
|
||||
break;
|
||||
case PALE_OAK_CREAKING:
|
||||
gen = TreeFeatures.PALE_OAK_CREAKING;
|
||||
break;
|
||||
case TREE:
|
||||
default:
|
||||
gen = TreeFeatures.OAK;
|
||||
|
Loading…
Reference in New Issue
Block a user