From fd52a3a27d288be732237c872d689972371de6a8 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 5 Dec 2024 22:27:22 +0100 Subject: [PATCH] fixed decayed leaves not decaying closes #376 --- .../java/de/ellpeck/naturesaura/blocks/BlockDecayedLeaves.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/BlockDecayedLeaves.java b/src/main/java/de/ellpeck/naturesaura/blocks/BlockDecayedLeaves.java index 82634e78..8f301e13 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/BlockDecayedLeaves.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/BlockDecayedLeaves.java @@ -17,7 +17,7 @@ public class BlockDecayedLeaves extends BlockImpl implements ICustomBlockState { @Override @SuppressWarnings("deprecation") - public void tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) { + public void randomTick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) { if (!level.isClientSide) { level.setBlockAndUpdate(pos, Blocks.AIR.defaultBlockState()); } @@ -27,4 +27,5 @@ public class BlockDecayedLeaves extends BlockImpl implements ICustomBlockState { public void generateCustomBlockState(BlockStateGenerator generator) { generator.simpleBlock(this, generator.models().getExistingFile(generator.modLoc(this.getBaseName()))); } + }