1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-26 23:42:18 +00:00

Merge pull request #31 from davidqueneau/fabric

Revert "Cable modems can be placed against all blocks, including ches…
This commit is contained in:
Devan-Kerman 2021-03-04 19:23:07 -06:00 committed by GitHub
commit 1b9e93a80f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,19 +181,17 @@ public class BlockCable extends BlockGeneric implements Waterloggable {
// : new ItemStack( ComputerCraftRegistry.ModItems.CABLE.get() );
// }
// Commenting override to allow cable modems to be placed on chests, so that chests can be generic inventory peripherals.
// TODO Perhaps there is a more selective way to achieve this?
// @Override
// @Deprecated
// public boolean canPlaceAt(BlockState state, @Nonnull WorldView world, @Nonnull BlockPos pos) {
// Direction facing = state.get(MODEM)
// .getFacing();
// if (facing == null) {
// return true;
// }
//
// return sideCoversSmallSquare(world, pos.offset(facing), facing.getOpposite());
// }
@Override
@Deprecated
public boolean canPlaceAt(BlockState state, @Nonnull WorldView world, @Nonnull BlockPos pos) {
Direction facing = state.get(MODEM)
.getFacing();
if (facing == null) {
return true;
}
return sideCoversSmallSquare(world, pos.offset(facing), facing.getOpposite());
}
@Nonnull
@Override