mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-12 11:10: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:
commit
2d3cd5dc80
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user