Fixed missing leaves in heveas

This commit is contained in:
Emmanuel BENOîT 2016-07-10 21:33:53 +02:00
parent a46f8b185b
commit 46920572db
2 changed files with 2 additions and 3 deletions

View file

@ -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 ) ) {

View file

@ -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 );
}
}