1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-04-05 10:16:59 +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
commit 914df8b0c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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