Fixed gas/force field/hull glass miss-rendering in some edge cases
This commit is contained in:
parent
d3e4717f1a
commit
62d1f4d9bd
3 changed files with 3 additions and 3 deletions
|
@ -170,7 +170,7 @@ public class BlockGas extends BlockAbstractBase {
|
|||
if (blockStateSide.getBlock() instanceof BlockGas) {
|
||||
return blockState.getValue(COLOR) != blockStateSide.getValue(COLOR);
|
||||
}
|
||||
return !blockAccess.isSideSolid(blockPosSide, opposite, false);
|
||||
return !blockStateSide.doesSideBlockRendering(blockAccess, blockPosSide, opposite);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -234,7 +234,7 @@ public class BlockForceField extends BlockAbstractForceField implements IDamageR
|
|||
return blockState.getBlock().getMetaFromState(blockState)
|
||||
!= 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) {
|
||||
|
|
|
@ -128,7 +128,7 @@ public class BlockHullGlass extends BlockColored implements IBlockBase, IDamageR
|
|||
return blockState.getBlock().getMetaFromState(blockState)
|
||||
!= blockStateSide.getBlock().getMetaFromState(blockStateSide);
|
||||
}
|
||||
return !blockAccess.isSideSolid(blockPosSide, opposite, false);
|
||||
return !blockStateSide.doesSideBlockRendering(blockAccess, blockPosSide, opposite);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue