Skip to content

Commit 914df8b

Browse files
authored
Merge pull request dan200#521 from SquidDev-CC/hotfix/modem-full-block
Fix wireless modems suffocating entities
2 parents 3b3dd80 + 5eadf55 commit 914df8b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/main/java/dan200/computercraft/shared/peripheral/common/BlockPeripheral.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,11 +631,34 @@ public final boolean isFullCube( IBlockState state )
631631
return isOpaqueCube( state );
632632
}
633633

634+
@Override
635+
@Deprecated
636+
public boolean isFullBlock( IBlockState state )
637+
{
638+
return isOpaqueCube( state );
639+
}
640+
634641
@Nonnull
635642
@Override
636643
@Deprecated
637644
public BlockFaceShape getBlockFaceShape( IBlockAccess world, IBlockState state, BlockPos pos, EnumFacing side )
638645
{
639646
return isOpaqueCube( state ) ? BlockFaceShape.SOLID : BlockFaceShape.UNDEFINED;
640647
}
648+
649+
@Override
650+
@Deprecated
651+
public boolean causesSuffocation(IBlockState state)
652+
{
653+
// This normally uses the default state
654+
return blockMaterial.blocksMovement() && state.isOpaqueCube();
655+
}
656+
657+
@Override
658+
@Deprecated
659+
public int getLightOpacity( IBlockState state )
660+
{
661+
// This normally uses the default state
662+
return isOpaqueCube( state ) ? 255 : 0;
663+
}
641664
}

0 commit comments

Comments
 (0)