Skip to content

Commit

Permalink
chore: refactor & use inject instead of shadow in mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
emonadeo committed Nov 7, 2024
1 parent fa34d79 commit 70ab2da
Show file tree
Hide file tree
Showing 13 changed files with 331 additions and 363 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ This keybind can be customized in the controls options.
## FAQ

### Can I use it in my modpack?

Yes.

### Where can I download the mod?

The only official distributions are [GitHub](https://github.com/Emonadeo/AutoRun/releases), [CurseForge](https://www.curseforge.com/minecraft/mc-mods/autorun-fabric) and [Modrinth](https://modrinth.com/mod/autorun). Please let me know if you find any other website distributing this mod.
43 changes: 8 additions & 35 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.7-SNAPSHOT'
id 'fabric-loom' version '1.8-SNAPSHOT'
id 'maven-publish'
id "com.matthewprenger.cursegradle" version "1.4.0"
id "com.modrinth.minotaur" version "2.+"
Expand All @@ -17,34 +17,24 @@ repositories {
maven { url "https://maven.terraformersmc.com/" }
}

loom {
splitEnvironmentSourceSets()

mods {
"autorun" {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
}

}

dependencies {
// Minecraft & Fabric Loader
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Fabric API
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

// Mod Menu
modImplementation("com.terraformersmc:modmenu:${project.modmenu_version}") {
exclude(group: "net.fabricmc.fabric-api")
}

// Cloth Config
modApi("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_version}") {
exclude(group: "net.fabricmc.fabric-api")
}

include "me.shedaniel.cloth:cloth-config-fabric:${project.cloth_version}"
}

processResources {
Expand Down Expand Up @@ -72,23 +62,6 @@ jar {
}
}

// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}

curseforge {
if (project.hasProperty("curseForgeApiKey") || System.getenv("curseForgeApiKey") != null) {
apiKey = project.hasProperty("curseForgeApiKey") ? project.property("curseForgeApiKey") : System.getenv("curseForgeApiKey")
Expand All @@ -99,7 +72,7 @@ curseforge {
changelog = file("changelog.txt")

addGameVersion "1.21.3"
addGameVersion "1.21"
addGameVersion "1.21.2"
addGameVersion "Java 21"
addGameVersion "Fabric"

Expand All @@ -123,9 +96,9 @@ import com.modrinth.minotaur.dependencies.ModDependency
modrinth {
token = project.hasProperty("modrinthApiKey") ? project.property("modrinthApiKey") : System.getenv("modrinthApiKey")
projectId = "2i7tg1Wv"
versionName = "v${project.mod_version} (Minecraft 1.21)"
versionName = "v${project.mod_version} (Minecraft 1.21.2)"
versionNumber = version
uploadFile = remapJar
gameVersions = ["1.21"]
gameVersions = ["1.21.2", "1.21.3"]
loaders = ["fabric"]
}
168 changes: 0 additions & 168 deletions src/client/java/com/emonadeo/autorun/AutoRunMod.java

This file was deleted.

68 changes: 0 additions & 68 deletions src/client/java/com/emonadeo/autorun/AutoRunModMenu.java

This file was deleted.

41 changes: 0 additions & 41 deletions src/client/java/com/emonadeo/autorun/mixin/client/InputMixin.java

This file was deleted.

Loading

0 comments on commit 70ab2da

Please sign in to comment.