Skip to content

Commit

Permalink
add upgrade card for ae2fc dual interface
Browse files Browse the repository at this point in the history
  • Loading branch information
GlodBlock committed Jun 4, 2024
1 parent 2ebd8e2 commit 9270484
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import appeng.core.Api;
import appeng.core.features.DamagedItemDefinition;
import appeng.core.features.IStackSrc;
import appeng.util.Platform;
import co.neeve.nae2.Tags;
import co.neeve.nae2.common.crafting.patterntransform.PatternTransform;
import co.neeve.nae2.common.crafting.patterntransform.transformers.GregTechCircuitPatternTransformer;
Expand All @@ -17,6 +18,8 @@
import co.neeve.nae2.common.registration.registry.interfaces.DamagedDefinitions;
import co.neeve.nae2.common.registration.registry.rendering.DamagedItemRendering;
import co.neeve.nae2.common.registration.registry.rendering.IModelProvider;
import com.glodblock.github.loader.FCBlocks;
import com.glodblock.github.loader.FCItems;
import com.google.common.base.Preconditions;
import it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap;
import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap;
Expand Down Expand Up @@ -65,6 +68,10 @@ public Upgrades(Registry registry) {

UpgradeType.AUTO_COMPLETE.registerItem(blocks.iface(), 1);
UpgradeType.AUTO_COMPLETE.registerItem(parts.iface(), 1);
if (Platform.isModLoaded("ae2fc")) {
UpgradeType.AUTO_COMPLETE.registerItem(new ItemStack(FCBlocks.DUAL_INTERFACE), 1);
UpgradeType.AUTO_COMPLETE.registerItem(new ItemStack(FCItems.PART_DUAL_INTERFACE), 1);
}
});
}

Expand All @@ -79,6 +86,10 @@ public Upgrades(Registry registry) {

UpgradeType.GREGTECH_CIRCUIT.registerItem(blocks.iface(), 1);
UpgradeType.GREGTECH_CIRCUIT.registerItem(parts.iface(), 1);
if (Platform.isModLoaded("ae2fc")) {
UpgradeType.GREGTECH_CIRCUIT.registerItem(new ItemStack(FCBlocks.DUAL_INTERFACE), 1);
UpgradeType.GREGTECH_CIRCUIT.registerItem(new ItemStack(FCItems.PART_DUAL_INTERFACE), 1);
}
});
}
}
Expand Down

0 comments on commit 9270484

Please sign in to comment.