Fixed gas/force field/hull glass miss-rendering in some edge cases

This commit is contained in:
LemADEC 2020-06-20 17:28:29 +02:00
parent d3e4717f1a
commit 62d1f4d9bd
3 changed files with 3 additions and 3 deletions

View file

@ -170,7 +170,7 @@ public class BlockGas extends BlockAbstractBase {
if (blockStateSide.getBlock() instanceof BlockGas) { if (blockStateSide.getBlock() instanceof BlockGas) {
return blockState.getValue(COLOR) != blockStateSide.getValue(COLOR); return blockState.getValue(COLOR) != blockStateSide.getValue(COLOR);
} }
return !blockAccess.isSideSolid(blockPosSide, opposite, false); return !blockStateSide.doesSideBlockRendering(blockAccess, blockPosSide, opposite);
} }
@Override @Override

View file

@ -234,7 +234,7 @@ public class BlockForceField extends BlockAbstractForceField implements IDamageR
return blockState.getBlock().getMetaFromState(blockState) return blockState.getBlock().getMetaFromState(blockState)
!= blockStateSide.getBlock().getMetaFromState(blockStateSide); != blockStateSide.getBlock().getMetaFromState(blockStateSide);
} }
return !blockAccess.isSideSolid(blockPosSide, opposite, false); return !blockStateSide.doesSideBlockRendering(blockAccess, blockPosSide, opposite);
} }
protected TileEntityForceFieldProjector getProjector(final World world, @Nonnull final BlockPos blockPos) { protected TileEntityForceFieldProjector getProjector(final World world, @Nonnull final BlockPos blockPos) {

View file

@ -128,7 +128,7 @@ public class BlockHullGlass extends BlockColored implements IBlockBase, IDamageR
return blockState.getBlock().getMetaFromState(blockState) return blockState.getBlock().getMetaFromState(blockState)
!= blockStateSide.getBlock().getMetaFromState(blockStateSide); != blockStateSide.getBlock().getMetaFromState(blockStateSide);
} }
return !blockAccess.isSideSolid(blockPosSide, opposite, false); return !blockStateSide.doesSideBlockRendering(blockAccess, blockPosSide, opposite);
} }
@Override @Override