From 46920572db8345232f00c03ad4ec3419decbd718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Sun, 10 Jul 2016 21:33:53 +0200 Subject: [PATCH] Fixed missing leaves in heveas --- src/java/mmm/world/trees/A_WTTreeGenerator.java | 1 - src/java/mmm/world/trees/WTHeveaGenerator.java | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/java/mmm/world/trees/A_WTTreeGenerator.java b/src/java/mmm/world/trees/A_WTTreeGenerator.java index e90cc2b..a58de6e 100644 --- a/src/java/mmm/world/trees/A_WTTreeGenerator.java +++ b/src/java/mmm/world/trees/A_WTTreeGenerator.java @@ -222,7 +222,6 @@ public abstract class A_WTTreeGenerator final BlockPos blockPos = rtd.corner.add( i , j , k ); final E_BlockRequirement rep = rtd.replaces( i , j , k ); if ( rep == null ) { - System.err.println( "REP IS NULL, STATE IS " + state ); continue; } if ( this.checkRequirement( worldIn , blockPos , rep ) ) { diff --git a/src/java/mmm/world/trees/WTHeveaGenerator.java b/src/java/mmm/world/trees/WTHeveaGenerator.java index 5cb9364..6203c67 100644 --- a/src/java/mmm/world/trees/WTHeveaGenerator.java +++ b/src/java/mmm/world/trees/WTHeveaGenerator.java @@ -60,7 +60,7 @@ public class WTHeveaGenerator final int rSquare = radius * radius + ( i & 1 ); for ( int x = -radius ; x <= radius ; x++ ) { for ( int z = -radius ; z <= radius ; z++ ) { - if ( ( x != 0 || z != 0 ) && x * x + z * z <= rSquare ) { + if ( x * x + z * z <= rSquare ) { rtd.setBlock( centre + x , y , centre + z , leaves , E_BlockRequirement.SOFT ); } } @@ -75,7 +75,7 @@ public class WTHeveaGenerator final int rSquare = radius * radius + 1; for ( int x = -radius ; x <= radius ; x++ ) { for ( int z = -radius ; z <= radius ; z++ ) { - if ( ( x != centre || z != centre || y >= trunkHeight ) && x * x + z * z <= rSquare ) { + if ( x * x + z * z <= rSquare ) { rtd.setBlock( centre + x , y , centre + z , leaves , E_BlockRequirement.SOFT ); } }