1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-12 19:20:29 +00:00

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

Fix wireless modems suffocating entities
This commit is contained in:
SquidDev 2018-02-15 18:00:58 +00:00
commit 2d3cd5dc80

View File

@ -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;
}
}