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:
commit
914df8b0c7
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user