>Simple. Just reverse the polarity.
ngl I enjoyed the "Unipolar magnets" in Dyson Sphere Program (excellent game btw if you're into factorio style mechanics).