Skip to content

Commit

Permalink
Rename integrated circuit in code (#2489)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungOnionMC authored Dec 3, 2024
1 parent 4149693 commit 229d9cb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected IntCircuitIngredient(int configuration) {
@Override
public boolean test(@Nullable ItemStack stack) {
if (stack == null) return false;
return stack.is(GTItems.INTEGRATED_CIRCUIT.get()) &&
return stack.is(GTItems.PROGRAMMED_CIRCUIT.get()) &&
IntCircuitBehaviour.getCircuitConfiguration(stack) == this.configuration;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2327,7 +2327,7 @@ public Component getItemName(ItemStack stack) {
public static ItemEntry<Item> PLUGIN_FAKE_GUI;
public static ItemEntry<Item> PLUGIN_ADVANCED_MONITOR;

public static ItemEntry<ComponentItem> INTEGRATED_CIRCUIT = REGISTRATE
public static ItemEntry<ComponentItem> PROGRAMMED_CIRCUIT = REGISTRATE
.item("programmed_circuit", ComponentItem::create)
.lang("Programmed Circuit")
.model(overrideModel(GTCEu.id("circuit"), 33))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class IntCircuitBehaviour implements IItemUIFactory, IAddInformation {
public static final int CIRCUIT_MAX = 32;

public static ItemStack stack(int configuration) {
var stack = GTItems.INTEGRATED_CIRCUIT.asStack();
var stack = GTItems.PROGRAMMED_CIRCUIT.asStack();
setCircuitConfiguration(stack, configuration);
return stack;
}
Expand All @@ -70,7 +70,7 @@ public static int getCircuitConfiguration(ItemStack itemStack) {
}

public static boolean isIntegratedCircuit(ItemStack itemStack) {
boolean isCircuit = GTItems.INTEGRATED_CIRCUIT.isIn(itemStack);
boolean isCircuit = GTItems.PROGRAMMED_CIRCUIT.isIn(itemStack);
if (isCircuit && !itemStack.hasTag()) {
var compound = new CompoundTag();
compound.putInt("Configuration", 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static void init(Consumer<FinishedRecipe> provider) {
ChemicalHelper.get(pipeLargeFluid, TreatedWood), "WWW", "s r", "WWW", 'W',
GTBlocks.TREATED_WOOD_PLANK.asStack());

VanillaRecipeHelper.addShapelessRecipe(provider, "integrated_circuit", INTEGRATED_CIRCUIT.asStack(),
VanillaRecipeHelper.addShapelessRecipe(provider, "programmed_circuit", PROGRAMMED_CIRCUIT.asStack(),
CustomTags.LV_CIRCUITS);

VanillaRecipeHelper.addShapedRecipe(provider, "item_filter", ITEM_FILTER.asStack(), "XXX", "XYX", "XXX", 'X',
Expand Down

0 comments on commit 229d9cb

Please sign in to comment.