mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 07:13:28 +01:00
Closes #1195
This commit is contained in:
parent
2786022b26
commit
ebda3195bb
1 changed files with 9 additions and 5 deletions
|
@ -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<BlockPos, IBlockState, IGrowable> 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue