From bf451dceb135269502685ba725625a8fca626050 Mon Sep 17 00:00:00 2001 From: Shadows_of_Fire Date: Mon, 15 Jan 2018 17:00:32 -0500 Subject: [PATCH] Fixes #1005 (removes a debug sysout) --- .../mod/blocks/BlockGreenhouseGlass.java | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockGreenhouseGlass.java b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockGreenhouseGlass.java index 622254292..e0b2102ee 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockGreenhouseGlass.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockGreenhouseGlass.java @@ -45,7 +45,7 @@ public class BlockGreenhouseGlass extends BlockBase { public boolean isFullCube(IBlockState state) { return true; } - + @Override public boolean isOpaqueCube(IBlockState state) { return false; @@ -78,20 +78,17 @@ public class BlockGreenhouseGlass extends BlockBase { if (world.isRemote) return; if (world.canBlockSeeSky(pos) && world.isDaytime()) { - - System.out.println("debugg"); - Triple 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; - } - - if(once) world.playEvent(2005, trip.getMiddle().isOpaqueCube() ? trip.getLeft().up() : trip.getLeft(), 0); + + 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); } }