summaryrefslogtreecommitdiffstats
path: root/nms-patches/WorldGenMegaTreeAbstract.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/WorldGenMegaTreeAbstract.patch')
-rw-r--r--nms-patches/WorldGenMegaTreeAbstract.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/nms-patches/WorldGenMegaTreeAbstract.patch b/nms-patches/WorldGenMegaTreeAbstract.patch
new file mode 100644
index 00000000..4dcc8625
--- /dev/null
+++ b/nms-patches/WorldGenMegaTreeAbstract.patch
@@ -0,0 +1,11 @@
+--- ../work/decompile-bb26c12b/net/minecraft/server/WorldGenMegaTreeAbstract.java 2014-11-27 08:59:46.925420860 +1100
++++ src/main/java/net/minecraft/server/WorldGenMegaTreeAbstract.java 2014-11-27 08:42:10.140850934 +1100
+@@ -42,7 +42,7 @@
+
+ for (int k = -b0; k <= b0 && flag; ++k) {
+ for (int l = -b0; l <= b0 && flag; ++l) {
+- if (blockposition.getY() + j < 0 || blockposition.getY() + j >= 256 || !this.a(world.getType(blockposition.a(k, j, l)).getBlock())) {
++ if (blockposition.getY() + j < 0 || blockposition.getY() + j >= 256 || (!this.a(world.getType(blockposition.a(k, j, l)).getBlock()) && world.getType(blockposition.a(k, j, l)).getBlock() != Blocks.SAPLING)) { // CraftBukkit - ignore our own saplings
+ flag = false;
+ }
+ }