From ebda3195bb66b4d1e3d3ea1864043471fa747a52 Mon Sep 17 00:00:00 2001 From: Shadows_of_Fire Date: Sun, 28 Oct 2018 13:52:26 -0400 Subject: [PATCH] Closes #1195 --- .../mod/blocks/BlockGreenhouseGlass.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 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 42c7cc73a..2065f9ed4 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockGreenhouseGlass.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockGreenhouseGlass.java @@ -42,15 +42,20 @@ public class BlockGreenhouseGlass extends BlockBase { } @Override - public boolean isFullCube(IBlockState state) { - return true; + public boolean isOpaqueCube(IBlockState state) { + return false; } @Override - public boolean isOpaqueCube(IBlockState state) { + public boolean isFullCube(IBlockState state) { return false; } + @Override + public int getLightOpacity(IBlockState state) { + return 0; + } + @Override @Deprecated @SideOnly(Side.CLIENT) @@ -75,7 +80,6 @@ public class BlockGreenhouseGlass extends BlockBase { @Override public void updateTick(World world, BlockPos pos, IBlockState state, Random rand) { if (world.isRemote) return; - if (world.canBlockSeeSky(pos) && world.isDaytime()) { Triple trip = firstBlock(world, pos); boolean once = false; @@ -96,7 +100,7 @@ public class BlockGreenhouseGlass extends BlockBase { 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) { if (state.getBlock() instanceof IGrowable) return Triple.of(mut.toImmutable(), state, (IGrowable) state.getBlock()); else return null; }