mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-08-28 08:12: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:
commit
1b9e93a80f
@ -181,19 +181,17 @@ public class BlockCable extends BlockGeneric implements Waterloggable {
|
|||||||
// : new ItemStack( ComputerCraftRegistry.ModItems.CABLE.get() );
|
// : 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.
|
@Override
|
||||||
// TODO Perhaps there is a more selective way to achieve this?
|
@Deprecated
|
||||||
// @Override
|
public boolean canPlaceAt(BlockState state, @Nonnull WorldView world, @Nonnull BlockPos pos) {
|
||||||
// @Deprecated
|
Direction facing = state.get(MODEM)
|
||||||
// public boolean canPlaceAt(BlockState state, @Nonnull WorldView world, @Nonnull BlockPos pos) {
|
.getFacing();
|
||||||
// Direction facing = state.get(MODEM)
|
if (facing == null) {
|
||||||
// .getFacing();
|
return true;
|
||||||
// if (facing == null) {
|
}
|
||||||
// return true;
|
|
||||||
// }
|
return sideCoversSmallSquare(world, pos.offset(facing), facing.getOpposite());
|
||||||
//
|
}
|
||||||
// return sideCoversSmallSquare(world, pos.offset(facing), facing.getOpposite());
|
|
||||||
// }
|
|
||||||
|
|
||||||
@Nonnull
|
@Nonnull
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user