fix leaves
This commit is contained in:
parent
1d6fef0eee
commit
445c1be8af
2 changed files with 28 additions and 26 deletions
|
@ -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)
|
||||
// {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue