Skip to content

Commit

Permalink
Finish!
Browse files Browse the repository at this point in the history
  • Loading branch information
EnnuiL committed Apr 22, 2022
1 parent 8ce453c commit f6565bc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 16 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ dependencies {
processResources {
inputs.property "version", version

// Oh, for building, do the switcharoo
filesMatching('quilt.mod.json') {
expand "version": version
}

filesMatching('fabric.mod.json') {
expand "version": version
}
}

tasks.withType(JavaCompile).configureEach {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
@Mixin(MinecraftClient.class)
public class MinecraftClientMixin {
@ModifyArg(
method = "<init>",
method = "<init>(Lnet/minecraft/client/RunArgs;)V",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/MinecraftClient;setScreen(Lnet/minecraft/client/gui/screen/Screen;)V"
)
)
private Screen showFabricSunsetScreen(Screen titleScreen) {
private Screen showPMWScreen(Screen titleScreen) {
return new OkZoomerPMWScreen(titleScreen);
}
}
9 changes: 2 additions & 7 deletions src/main/resources/fabrique.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
"license": "MIT",
"icon": "assets/ok_zoomer/icon_sunset.png",
"environment": "client",
"entrypoints": {
"client_init": ["io.github.ennuil.ok_zoomer.OkZoomerClientMod"],
"client_events": ["io.github.ennuil.ok_zoomer.events.LoadConfigEvent"],
"modmenu": ["io.github.ennuil.ok_zoomer.config.modmenu.OkZoomerModMenuEntry"],
"preLaunch": ["io.github.ennuil.ok_zoomer.MixinExtrasInitializer"]
},
"depends": {
"fabricloader": ">=0.13.3",
"java": ">=17"
Expand All @@ -29,8 +23,9 @@
"mixins": ["ok_zoomer_pmw.mixins.json"],
"custom": {
"platform_migration_warning": {
"author": "ennuil",
"name": "Ok Zoomer",
"migrated_since": "5.0.0-beta.7",
"author": "ennuil",
"implements_self": true
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/ok_zoomer_pmw.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"package": "io.github.ennuil.ok_zoomer.mixin",
"compatibilityLevel": "JAVA_17",
"client": [
"MinecraftClientMixin"
"MinecraftClientMixin"
],
"injectors": {
"defaultRequire": 1
Expand Down
7 changes: 1 addition & 6 deletions src/main/resources/quilt.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,5 @@
"minecraft": {
"environment": "client"
},
"mixin": "ok_zoomer.mixins.json",
"platform_migration_warning": {
"name": "Ok Zoomer",
"migrated_since": "5.0.0-beta.7",
"author": "ennuil"
}
"mixin": "ok_zoomer.mixins.json"
}

0 comments on commit f6565bc

Please sign in to comment.