geforkt von Mirrors/Paper
Fix crash growing saplings
Dieser Commit ist enthalten in:
Ursprung
62761be294
Commit
22c3a2f9a5
@ -23,39 +23,39 @@
|
||||
+
|
||||
+ // CraftBukkit start
|
||||
+ protected void setTreeType(WorldGenFeatureConfigured<?, ?> worldgentreeabstract) {
|
||||
+ if (worldgentreeabstract.f == BiomeDecoratorGroups.OAK || worldgentreeabstract.f == BiomeDecoratorGroups.OAK_BEES_005) {
|
||||
+ if (worldgentreeabstract == BiomeDecoratorGroups.OAK || worldgentreeabstract == BiomeDecoratorGroups.OAK_BEES_005) {
|
||||
+ BlockSapling.treeType = TreeType.TREE;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.HUGE_RED_MUSHROOM) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.HUGE_RED_MUSHROOM) {
|
||||
+ BlockSapling.treeType = TreeType.RED_MUSHROOM;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.HUGE_BROWN_MUSHROOM) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.HUGE_BROWN_MUSHROOM) {
|
||||
+ BlockSapling.treeType = TreeType.BROWN_MUSHROOM;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.JUNGLE_TREE) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.JUNGLE_TREE) {
|
||||
+ BlockSapling.treeType = TreeType.COCOA_TREE;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.JUNGLE_TREE_NO_VINE) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.JUNGLE_TREE_NO_VINE) {
|
||||
+ BlockSapling.treeType = TreeType.SMALL_JUNGLE;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.PINE) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.PINE) {
|
||||
+ BlockSapling.treeType = TreeType.TALL_REDWOOD;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.SPRUCE) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.SPRUCE) {
|
||||
+ BlockSapling.treeType = TreeType.REDWOOD;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.ACACIA) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.ACACIA) {
|
||||
+ BlockSapling.treeType = TreeType.ACACIA;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.BIRCH || worldgentreeabstract.f == BiomeDecoratorGroups.BIRCH_BEES_005) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.BIRCH || worldgentreeabstract == BiomeDecoratorGroups.BIRCH_BEES_005) {
|
||||
+ BlockSapling.treeType = TreeType.BIRCH;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.SUPER_BIRCH_BEES_0002) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.SUPER_BIRCH_BEES_0002) {
|
||||
+ BlockSapling.treeType = TreeType.TALL_BIRCH;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.SWAMP_TREE) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.SWAMP_TREE) {
|
||||
+ BlockSapling.treeType = TreeType.SWAMP;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.FANCY_OAK || worldgentreeabstract.f == BiomeDecoratorGroups.FANCY_OAK_BEES_005) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.FANCY_OAK || worldgentreeabstract == BiomeDecoratorGroups.FANCY_OAK_BEES_005) {
|
||||
+ BlockSapling.treeType = TreeType.BIG_TREE;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.JUNGLE_BUSH) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.JUNGLE_BUSH) {
|
||||
+ BlockSapling.treeType = TreeType.JUNGLE_BUSH;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.DARK_OAK) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.DARK_OAK) {
|
||||
+ BlockSapling.treeType = TreeType.DARK_OAK;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.MEGA_SPRUCE) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.MEGA_SPRUCE) {
|
||||
+ BlockSapling.treeType = TreeType.MEGA_REDWOOD;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.MEGA_PINE) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.MEGA_PINE) {
|
||||
+ BlockSapling.treeType = TreeType.MEGA_REDWOOD;
|
||||
+ } else if (worldgentreeabstract.f == BiomeDecoratorGroups.MEGA_JUNGLE_TREE) {
|
||||
+ } else if (worldgentreeabstract == BiomeDecoratorGroups.MEGA_JUNGLE_TREE) {
|
||||
+ BlockSapling.treeType = TreeType.JUNGLE;
|
||||
+ } else {
|
||||
+ throw new IllegalArgumentException("Unknown tree generator " + worldgentreeabstract);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren