Fixed missing leaves in heveas
This commit is contained in:
parent
a46f8b185b
commit
46920572db
2 changed files with 2 additions and 3 deletions
|
@ -222,7 +222,6 @@ public abstract class A_WTTreeGenerator
|
||||||
final BlockPos blockPos = rtd.corner.add( i , j , k );
|
final BlockPos blockPos = rtd.corner.add( i , j , k );
|
||||||
final E_BlockRequirement rep = rtd.replaces( i , j , k );
|
final E_BlockRequirement rep = rtd.replaces( i , j , k );
|
||||||
if ( rep == null ) {
|
if ( rep == null ) {
|
||||||
System.err.println( "REP IS NULL, STATE IS " + state );
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ( this.checkRequirement( worldIn , blockPos , rep ) ) {
|
if ( this.checkRequirement( worldIn , blockPos , rep ) ) {
|
||||||
|
|
|
@ -60,7 +60,7 @@ public class WTHeveaGenerator
|
||||||
final int rSquare = radius * radius + ( i & 1 );
|
final int rSquare = radius * radius + ( i & 1 );
|
||||||
for ( int x = -radius ; x <= radius ; x++ ) {
|
for ( int x = -radius ; x <= radius ; x++ ) {
|
||||||
for ( int z = -radius ; z <= radius ; z++ ) {
|
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 );
|
rtd.setBlock( centre + x , y , centre + z , leaves , E_BlockRequirement.SOFT );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ public class WTHeveaGenerator
|
||||||
final int rSquare = radius * radius + 1;
|
final int rSquare = radius * radius + 1;
|
||||||
for ( int x = -radius ; x <= radius ; x++ ) {
|
for ( int x = -radius ; x <= radius ; x++ ) {
|
||||||
for ( int z = -radius ; z <= radius ; z++ ) {
|
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 );
|
rtd.setBlock( centre + x , y , centre + z , leaves , E_BlockRequirement.SOFT );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue