diff --git a/src/main/java/dan200/computercraft/shared/peripheral/common/BlockPeripheral.java b/src/main/java/dan200/computercraft/shared/peripheral/common/BlockPeripheral.java index 34ff51ee5..9c589eec2 100644 --- a/src/main/java/dan200/computercraft/shared/peripheral/common/BlockPeripheral.java +++ b/src/main/java/dan200/computercraft/shared/peripheral/common/BlockPeripheral.java @@ -638,4 +638,20 @@ public class BlockPeripheral extends BlockPeripheralBase { return isOpaqueCube( state ) ? BlockFaceShape.SOLID : BlockFaceShape.UNDEFINED; } + + @Override + @Deprecated + public boolean causesSuffocation(IBlockState state) + { + // This normally uses the default state + return blockMaterial.blocksMovement() && state.isOpaqueCube(); + } + + @Override + @Deprecated + public int getLightOpacity( IBlockState state ) + { + // This normally uses the default state + return isOpaqueCube( state ) ? 255 : 0; + } }