File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
src/main/java/cc/polyfrost/example/hud Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -64,16 +64,11 @@ repositories {
6464
6565dependencies {
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
7974tasks.processResources {
@@ -161,4 +156,4 @@ tasks {
161156 archiveClassifier.set(" " )
162157 enabled = false
163158 }
164- }
159+ }
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments