Small fixes & animation
This commit is contained in:
parent
e25c3a15ab
commit
2e16fdd8bb
5 changed files with 8 additions and 2 deletions
|
@ -92,7 +92,7 @@ public class TenaneaBushFeature extends DefaultFeature {
|
|||
support.forEach((bpos) -> {
|
||||
int count = MHelper.randRange(3, 8, random);
|
||||
mut.set(bpos);
|
||||
if (world.getBlockState(mut.up()).isOf(EndBlocks.TENANEA_LEAVES)) {
|
||||
if (world.isAir(mut) && world.getBlockState(mut.up()).isOf(EndBlocks.TENANEA_LEAVES)) {
|
||||
BlocksHelper.setWithoutUpdate(world, mut, top);
|
||||
for (int i = 1; i < count; i++) {
|
||||
mut.setY(mut.getY() - 1);
|
||||
|
|
|
@ -143,7 +143,7 @@ public class TenaneaFeature extends DefaultFeature {
|
|||
support.forEach((bpos) -> {
|
||||
int count = MHelper.randRange(3, 8, random);
|
||||
mut.set(bpos);
|
||||
if (world.getBlockState(mut.up()).isOf(EndBlocks.TENANEA_LEAVES)) {
|
||||
if (world.isAir(mut) && world.getBlockState(mut.up()).isOf(EndBlocks.TENANEA_LEAVES)) {
|
||||
BlocksHelper.setWithoutUpdate(world, mut, top);
|
||||
for (int i = 1; i < count; i++) {
|
||||
mut.setY(mut.getY() - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue