mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Fixes #1005 (removes a debug sysout)
This commit is contained in:
parent
ffa274a7b2
commit
bf451dceb1
1 changed files with 9 additions and 12 deletions
|
@ -78,20 +78,17 @@ public class BlockGreenhouseGlass extends BlockBase {
|
|||
if (world.isRemote) return;
|
||||
|
||||
if (world.canBlockSeeSky(pos) && world.isDaytime()) {
|
||||
|
||||
System.out.println("debugg");
|
||||
|
||||
Triple<BlockPos, IBlockState, IGrowable> trip = firstBlock(world, pos);
|
||||
|
||||
boolean once = false;
|
||||
|
||||
for(int i = 0; i < 3; i++)
|
||||
if (trip != null && trip.getRight().canGrow(world, trip.getLeft(), trip.getMiddle(), false)) {
|
||||
trip.getRight().grow(world, rand, trip.getLeft(), trip.getMiddle());
|
||||
once = true;
|
||||
}
|
||||
for (int i = 0; i < 3; i++)
|
||||
if (trip != null && trip.getRight().canGrow(world, trip.getLeft(), trip.getMiddle(), false)) {
|
||||
trip.getRight().grow(world, rand, trip.getLeft(), trip.getMiddle());
|
||||
once = true;
|
||||
}
|
||||
|
||||
if(once) world.playEvent(2005, trip.getMiddle().isOpaqueCube() ? trip.getLeft().up() : trip.getLeft(), 0);
|
||||
if (once) world.playEvent(2005, trip.getMiddle().isOpaqueCube() ? trip.getLeft().up() : trip.getLeft(), 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue