Skip to content

Commit

Permalink
fixed decayed leaves not decaying
Browse files Browse the repository at this point in the history
closes #376
  • Loading branch information
Ellpeck committed Dec 5, 2024
1 parent 96cd596 commit fd52a3a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public BlockDecayedLeaves() {

@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());
}
Expand All @@ -27,4 +27,5 @@ public void tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource
public void generateCustomBlockState(BlockStateGenerator generator) {
generator.simpleBlock(this, generator.models().getExistingFile(generator.modLoc(this.getBaseName())));
}

}

0 comments on commit fd52a3a

Please sign in to comment.