From 82d72d8b57a0253b86508fd0ad29ebb2c96c34c5 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 12 May 2020 17:35:32 +0200 Subject: [PATCH] fixed ancient leaves not decaying Closes #117 --- .../ellpeck/naturesaura/blocks/BlockAncientLeaves.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/BlockAncientLeaves.java b/src/main/java/de/ellpeck/naturesaura/blocks/BlockAncientLeaves.java index 90037c4b..a3d85fe6 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/BlockAncientLeaves.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/BlockAncientLeaves.java @@ -79,8 +79,8 @@ public class BlockAncientLeaves extends LeavesBlock implements IModItem, IColorP } @Override - public void tick(BlockState state, ServerWorld worldIn, BlockPos pos, Random random) { - super.tick(state, worldIn, pos, random); + public void randomTick(BlockState state, ServerWorld worldIn, BlockPos pos, Random random) { + super.randomTick(state, worldIn, pos, random); if (!worldIn.isRemote) { TileEntity tile = worldIn.getTileEntity(pos); if (tile instanceof TileEntityAncientLeaves) { @@ -91,6 +91,11 @@ public class BlockAncientLeaves extends LeavesBlock implements IModItem, IColorP } } + @Override + public boolean ticksRandomly(BlockState state) { + return true; + } + @Override public void generateCustomBlockState(BlockStateGenerator generator) { generator.simpleBlock(this, generator.models().getExistingFile(generator.modLoc(this.getBaseName())));