mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 14:59:22 +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