Fixed apple trees not producing very many apples

This commit is contained in:
Sollace 2019-02-05 11:09:48 +02:00
parent a3b0b7d507
commit 7625f9eb93

View file

@ -144,7 +144,7 @@ public class BlockFruitLeaves extends BlockLeaves implements IColourful {
@Override @Override
public void updateTick(World world, BlockPos pos, IBlockState state, Random rand) { public void updateTick(World world, BlockPos pos, IBlockState state, Random rand) {
if (!world.isRemote && world.isAreaLoaded(pos, 1)) { if (!world.isRemote && world.isAreaLoaded(pos, 1)) {
if (state.getValue(CHECK_DECAY) && state.getValue(DECAYABLE)) { if (state.getValue(DECAYABLE)) {
int growthChance = getGrowthChance(world, pos, state); int growthChance = getGrowthChance(world, pos, state);
if (!state.getValue(HEAVY) && (growthChance <= 0 || rand.nextInt(growthChance) == 0)) { if (!state.getValue(HEAVY) && (growthChance <= 0 || rand.nextInt(growthChance) == 0)) {