fix leaves

This commit is contained in:
Sen 2025-06-23 12:26:52 +02:00
parent 1d6fef0eee
commit 445c1be8af
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
2 changed files with 28 additions and 26 deletions

View file

@ -101,9 +101,11 @@ public class BlockLeaves extends BlockLeavesBase
{
if(Vars.seasonLeaves && this.subType != worldIn.getLeavesGen(pos)) {
worldIn.setState(pos, getLeavesBlock(this.type, worldIn.getLeavesGen(pos)).getState().withProperty(DECAY, state.getValue(DECAY)), 2);
return;
}
if(Vars.leafDry && worldIn.getTemperatureC(pos) >= 50.0f) {
worldIn.setState(pos, worldIn.rand.chance(40) ? Blocks.air.getState() : Blocks.dry_leaves.getState());
return;
}
// if (!worldIn.client)
// {