From 8d12263e7ac67662b3aab797c8a2c0d79d79fd76 Mon Sep 17 00:00:00 2001 From: wwrpg Date: Mon, 11 May 2015 22:20:19 -0700 Subject: [PATCH] Fixed #370 Prevents Hellbark Trees from breaking other blocks --- .../common/world/features/trees/WorldGenMiniShrub.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/biomesoplenty/common/world/features/trees/WorldGenMiniShrub.java b/src/main/java/biomesoplenty/common/world/features/trees/WorldGenMiniShrub.java index 1bed8db9f..c5e77ab7c 100644 --- a/src/main/java/biomesoplenty/common/world/features/trees/WorldGenMiniShrub.java +++ b/src/main/java/biomesoplenty/common/world/features/trees/WorldGenMiniShrub.java @@ -61,6 +61,16 @@ public class WorldGenMiniShrub extends WorldGenAbstractTree return false; } }*/ + if ( !this.isReplaceable(world, x, y + 1, z) || + !this.isReplaceable(world, x, y + 2, z) || + !this.isReplaceable(world, x+1, y + 2, z) || + !this.isReplaceable(world, x-1, y + 2, z) || + !this.isReplaceable(world, x, y + 2, z+1) || + !this.isReplaceable(world, x, y + 2, z-1) || + !this.isReplaceable(world, x, y + 3, z)) + { + return false; + } world.getBlock(x, y, z).onPlantGrow(world, x, y, z, x, y, z);