mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 11:36:43 +01:00
Fixed apple trees not producing very many apples
This commit is contained in:
parent
a3b0b7d507
commit
7625f9eb93
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue