Refactored CableBus to pass the direction directly.

This commit is contained in:
yueh
2020-07-01 19:56:39 +02:00
parent 400fcdb633
commit 7dffbf78ce
4 changed files with 8 additions and 14 deletions
@@ -158,11 +158,12 @@ public class CableBusBlock extends AEBaseTileBlock<CableBusTileEntity> implement
@Override
public boolean canConnectRedstone(final BlockState state, final IBlockReader w, final BlockPos pos,
Direction side) {
// TODO: Verify this.
if (side == null) {
side = Direction.UP;
return false;
}
return this.cb(w, pos).canConnectRedstone(EnumSet.of(side));
return this.cb(w, pos).canConnectRedstone(side.getOpposite());
}
@Override