only make leaves convert if their chunks are loaded

This commit is contained in:
Ellpeck 2018-11-13 17:13:27 +01:00
parent 5eed6c8792
commit a677ccfe67

View file

@ -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);
}
}
}