mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 16:28:00 +01:00
Fruit trees now consider the light level instead of time of day when trying to grow. Fixes #237
This commit is contained in:
parent
f3ab86ed74
commit
54381cf673
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ public class FruitBearingBlock extends LeavesBlock implements TintedBlock, Bucka
|
|||
return;
|
||||
}
|
||||
|
||||
if (world.isDay()) {
|
||||
if (world.getBaseLightLevel(pos, 0) > 8) {
|
||||
BlockSoundGroup group = getSoundGroup(state);
|
||||
int steps = FertilizableUtil.getGrowthSteps(world, pos, state, random);
|
||||
while (steps-- > 0) {
|
||||
|
|
Loading…
Reference in a new issue