Skip to content

Commit

Permalink
Update to new AE2WTLib API (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari023 authored Jul 28, 2024
1 parent bd58364 commit d98ded1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ java.toolchain.languageVersion = JavaLanguageVersion.of(21)

dependencies {
implementation(libs.ae2)
implementation(libs.ae2wtlib)
implementation(libs.ae2wtlibapi)
runtimeOnly(libs.ae2wtlib)

implementation(libs.appmek)
compileOnly(libs.mekanism)
Expand Down
5 changes: 4 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ run {
content {
includeGroup("appeng")
includeGroup("mekanism")
includeGroup("de.mari_023")
}
}

Expand All @@ -50,7 +51,9 @@ run {
version("ae2", "19.0.12-alpha")
library("ae2", "appeng", "appliedenergistics2").versionRef("ae2")

library("ae2wtlib", "maven.modrinth", "applied-energistics-2-wireless-terminals").version("WyPbb8sE")
version("ae2wtlib", "19.1.0-alpha.1")
library("ae2wtlib", "de.mari_023", "ae2wtlib").versionRef("ae2wtlib")
library("ae2wtlibapi", "de.mari_023", "ae2wtlib_api").versionRef("ae2wtlib")

library("appmek", "maven.modrinth", "applied-mekanistics").version("yh6fz02r")
library("mekanism", "mekanism", "Mekanism").version("$mc-10.6.5.52")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gripe/_90/megacells/MEGACells.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private static void initUpgrades(FMLCommonSetupEvent event) {
Upgrades.add(MEGAItems.GREATER_ENERGY_CARD, portableCell, 2, portableCellGroup);
}

if (Addons.AE2WTLIB.isLoaded()) {
if (Addons.AE2WTLIB_API.isLoaded()) {
AE2WTIntegration.initUpgrades();
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gripe/_90/megacells/integration/Addons.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public enum Addons {
APPBOT("Applied Botanics"),
ARSENG("Ars Énergistique"),
APPLIEDE("AppliedE"),
AE2WTLIB("AE2WTLib");
AE2WTLIB_API("AE2WTLib API");

private final String modName;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static gripe._90.megacells.definition.MEGAItems.GREATER_ENERGY_CARD;

import de.mari_023.ae2wtlib.UpgradeHelper;
import de.mari_023.ae2wtlib.api.registration.UpgradeHelper;

public final class AE2WTIntegration {
public static void initUpgrades() {
Expand Down

0 comments on commit d98ded1

Please sign in to comment.