mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Closes #1183
This commit is contained in:
parent
2eba07d478
commit
0a76d0a070
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ public class BlockGreenhouseGlass extends BlockBase {
|
||||||
while (true) {
|
while (true) {
|
||||||
mut.setPos(mut.getX(), mut.getY() - 1, mut.getZ());
|
mut.setPos(mut.getX(), mut.getY() - 1, mut.getZ());
|
||||||
IBlockState state = world.getBlockState(mut);
|
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());
|
if (state.getBlock() instanceof IGrowable) return Triple.of(mut.toImmutable(), state, (IGrowable) state.getBlock());
|
||||||
else return null;
|
else return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue