From f12e83a4d099f0b00a3b23abef5796fb7377fefe Mon Sep 17 00:00:00 2001 From: Brennan Ward Date: Thu, 29 Aug 2019 18:44:13 -0400 Subject: [PATCH] Closes #1278 --- .../actuallyadditions/mod/blocks/BlockGreenhouseGlass.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 2065f9ed4..c1b6abfa4 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockGreenhouseGlass.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockGreenhouseGlass.java @@ -94,13 +94,13 @@ public class BlockGreenhouseGlass extends BlockBase { } } - public static Triple firstBlock(World world, BlockPos glassPos) { + public Triple firstBlock(World world, BlockPos glassPos) { BlockPos.MutableBlockPos mut = new BlockPos.MutableBlockPos(glassPos); while (true) { mut.setPos(mut.getX(), mut.getY() - 1, mut.getZ()); if (mut.getY() < 0) return null; IBlockState state = world.getBlockState(mut); - if (state.isOpaqueCube() || state.getBlock() instanceof IGrowable) { + if (state.isOpaqueCube() || state.getBlock() instanceof IGrowable || state.getBlock() == this) { if (state.getBlock() instanceof IGrowable) return Triple.of(mut.toImmutable(), state, (IGrowable) state.getBlock()); else return null; }