mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 07:13:28 +01:00
Closes #1180
This commit is contained in:
parent
abc24a800e
commit
7b44cec1dc
1 changed files with 2 additions and 1 deletions
|
@ -79,9 +79,10 @@ public class BlockGreenhouseGlass extends BlockBase {
|
|||
if (world.canBlockSeeSky(pos) && world.isDaytime()) {
|
||||
Triple<BlockPos, IBlockState, IGrowable> trip = firstBlock(world, pos);
|
||||
boolean once = false;
|
||||
if(trip != null)
|
||||
for (int i = 0; i < 3; i++) {
|
||||
IBlockState growState = i == 0 ? trip.getMiddle() : world.getBlockState(trip.getLeft());
|
||||
if (trip != null && trip.getRight().canGrow(world, trip.getLeft(), growState, false)) {
|
||||
if (trip.getRight().canGrow(world, trip.getLeft(), growState, false)) {
|
||||
trip.getRight().grow(world, rand, trip.getLeft(), growState);
|
||||
once = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue