1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2026-04-21 06:21:23 +00:00

Merge pull request #521 from SquidDev-CC/hotfix/modem-full-block

Fix wireless modems suffocating entities
This commit is contained in:
Daniel Ratcliffe
2018-03-05 14:07:57 +00:00
committed by GitHub

View File

@@ -631,6 +631,13 @@ public class BlockPeripheral extends BlockPeripheralBase
return isOpaqueCube( state );
}
@Override
@Deprecated
public boolean isFullBlock( IBlockState state )
{
return isOpaqueCube( state );
}
@Nonnull
@Override
@Deprecated
@@ -638,4 +645,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;
}
}