Skip to content

Commit 6a5e5aa

Browse files
committed
update oneconfig
1 parent 43281f0 commit 6a5e5aa

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

build.gradle.kts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,11 @@ repositories {
6464

6565
dependencies {
6666
modCompileOnly("cc.polyfrost:oneconfig-$platform:0.1.0-alpha+")
67-
68-
//compileOnly("org.spongepowered:mixin:0.7.11-SNAPSHOT")
6967

70-
val loader = when {
71-
platform.isLegacyForge -> "launchwrapper"
72-
platform.isModLauncher -> "modlauncher"
73-
platform.isFabric -> "prelaunch"
74-
else -> throw IllegalStateException("Unknown platform: $platform")
68+
if (platform.isLegacyForge) {
69+
compileOnly("org.spongepowered:mixin:0.7.11-SNAPSHOT")
70+
shade("cc.polyfrost:oneconfig-wrapper-launchwrapper:1.0.0-alpha+")
7571
}
76-
shade("cc.polyfrost:oneconfig-wrapper-$loader:1.0.0-alpha+")
7772
}
7873

7974
tasks.processResources {
@@ -161,4 +156,4 @@ tasks {
161156
archiveClassifier.set("")
162157
enabled = false
163158
}
164-
}
159+
}

src/main/java/cc/polyfrost/example/hud/TestHud.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public TestHud() {
1010
}
1111

1212
@Override
13-
protected String getText() {
13+
protected String getText(boolean example) {
1414
return Minecraft.getMinecraft().getSession().getUsername();
1515
}
1616
}

0 commit comments

Comments
 (0)