SPIGOT-4160: StructureGrowEvent not triggering for giant trees

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-07-27 19:16:12 +10:00
parent 5bdad5e046
commit 63ec61fc4a
2 changed files with 27 additions and 5 deletions

View File

@@ -8,7 +8,7 @@
public abstract class WorldGenTreeProvider {
@@ -16,6 +17,29 @@
@@ -16,6 +17,25 @@
if (worldgentreeabstract == null) {
return false;
} else {
@@ -21,10 +21,6 @@
+ BlockSapling.treeType = TreeType.BIRCH;
+ } else if (worldgentreeabstract instanceof WorldGenForestTree) {
+ BlockSapling.treeType = TreeType.DARK_OAK;
+ } else if (worldgentreeabstract instanceof WorldGenJungleTree) {
+ BlockSapling.treeType = TreeType.JUNGLE;
+ } else if (worldgentreeabstract instanceof WorldGenMegaTree) {
+ BlockSapling.treeType = TreeType.MEGA_REDWOOD;
+ } else if (worldgentreeabstract instanceof WorldGenTaiga1) {
+ BlockSapling.treeType = TreeType.REDWOOD;
+ } else if (worldgentreeabstract instanceof WorldGenTaiga2) {