This commit is contained in:
Shadows_of_Fire 2018-10-05 02:05:14 -04:00
parent 2eba07d478
commit 0a76d0a070

View file

@ -96,7 +96,7 @@ public class BlockGreenhouseGlass extends BlockBase {
while (true) {
mut.setPos(mut.getX(), mut.getY() - 1, mut.getZ());
IBlockState state = world.getBlockState(mut);
if (!state.getBlock().isAir(state, world, mut)) {
if (!state.isOpaqueCube() || state.getBlock() instanceof IGrowable) {
if (state.getBlock() instanceof IGrowable) return Triple.of(mut.toImmutable(), state, (IGrowable) state.getBlock());
else return null;
}