mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-30 20:03:51 -07:00
@@ -1,26 +1,10 @@
|
||||
--- a/net/minecraft/server/WorldGenMegaTreeProvider.java
|
||||
+++ b/net/minecraft/server/WorldGenMegaTreeProvider.java
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
import java.util.Random;
|
||||
import javax.annotation.Nullable;
|
||||
+import org.bukkit.TreeType; // CraftBukkit
|
||||
|
||||
public abstract class WorldGenMegaTreeProvider extends WorldGenTreeProvider {
|
||||
|
||||
@@ -28,6 +29,15 @@
|
||||
@@ -28,6 +28,7 @@
|
||||
if (worldgentreeabstract == null) {
|
||||
return false;
|
||||
} else {
|
||||
+ // CraftBukkit start
|
||||
+ if (worldgentreeabstract instanceof WorldGenJungleTree) {
|
||||
+ BlockSapling.treeType = TreeType.JUNGLE;
|
||||
+ } else if (worldgentreeabstract instanceof WorldGenMegaTree) {
|
||||
+ BlockSapling.treeType = TreeType.MEGA_REDWOOD;
|
||||
+ } else {
|
||||
+ throw new IllegalArgumentException("Unknown tree generator " + worldgentreeabstract);
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+ setTreeType(worldgentreeabstract); // CraftBukkit
|
||||
IBlockData iblockdata1 = Blocks.AIR.getBlockData();
|
||||
|
||||
generatoraccess.setTypeAndData(blockposition.a(i, 0, j), iblockdata1, 4);
|
||||
|
Reference in New Issue
Block a user