mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 11:53:29 +01:00
only make leaves convert if their chunks are loaded
This commit is contained in:
parent
5eed6c8792
commit
a677ccfe67
1 changed files with 3 additions and 2 deletions
|
@ -158,8 +158,9 @@ public class BlockGoldenLeaves extends BlockLeaves implements
|
|||
}
|
||||
|
||||
if (stage > 1) {
|
||||
EnumFacing facing = EnumFacing.random(rand);
|
||||
convert(worldIn, pos.offset(facing));
|
||||
BlockPos offset = pos.offset(EnumFacing.random(rand));
|
||||
if (worldIn.isBlockLoaded(offset))
|
||||
convert(worldIn, offset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue