Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove magnetos from circuit diagram #36

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import javax.annotation.Nullable;

import com.dreammaster.gthandler.CustomItemList;
import com.github.bartimaeusnek.bartworks.system.material.CircuitGeneration.BW_Meta_Items;
import com.github.dcysteine.neicustomdiagram.api.diagram.component.DisplayComponent;
import com.github.dcysteine.neicustomdiagram.api.diagram.component.ItemComponent;
import com.github.dcysteine.neicustomdiagram.main.Registry;
Expand Down Expand Up @@ -272,15 +270,7 @@ void initialize() {
GregTechOreDictUtil.getComponent(ItemList.Circuit_TranscendentComputer),
GregTechOreDictUtil.getComponent(ItemList.Circuit_TranscendentMainframe))
.build());
if (Registry.ModDependency.BARTWORKS.isLoaded()) {
CircuitLine.Builder circuitLineBuilder = CircuitLine.builder()
.addBoard(ItemComponent.create(BW_Meta_Items.getNEWCIRCUITS().getStack(3))).setStartTier(0);

IntStream.rangeClosed(4, 14).mapToObj(i -> ItemComponent.create(BW_Meta_Items.getNEWCIRCUITS().getStack(i)))
.forEach(circuitLineBuilder::addCircuit);

circuitLinesBuilder.add(circuitLineBuilder.build());
}
// If we need to add any more circuit lines, we'll probably just want to add an entire
// second page of circuit lines.
circuitLines = circuitLinesBuilder.build();
Expand Down