Merge pull request #4443 from AppliedEnergistics/cable-bus-redstone-connections

Refactored CableBus to pass the direction directly.
This commit is contained in:
shartte
2020-07-02 12:17:54 +02:00
committed by GitHub
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