Skip to content

Commit

Permalink
Fixed trees failing to generate
Browse files Browse the repository at this point in the history
  • Loading branch information
supermassimo committed Sep 14, 2024
1 parent 476fbbf commit 06d2ae1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
modName=DynamicTrees
modId=dynamictrees
modVersion=1.3.3-ALPHA01
modVersion=1.4.0-ALPHA02

group=com.ferreusveritas.dynamictrees

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,7 @@ public ItemStack getCloneItemStack(BlockState state, HitResult target, BlockGett

@Override
public int age(LevelAccessor level, BlockPos pos, BlockState state, RandomSource rand, SafeChunkBounds safeBounds) {
if (!removeIfLightIsInadequate(state, level, pos, rand)){
updateLeaves(level, pos, state, rand,safeBounds == SafeChunkBounds.ANY_WG,null);
}
return state.getValue(DISTANCE);
return updateLeaves(level, pos, state, rand,safeBounds == SafeChunkBounds.ANY_WG,null);
}

@Override
Expand Down

0 comments on commit 06d2ae1

Please sign in to comment.