Skip to content

Commit

Permalink
Update OneConfig + other things
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Dec 31, 2024
1 parent 2d2c716 commit 9c6f916
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 84 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,4 @@ Example mod implementing OneConfig.
- **Remove the license named "LICENSE-TEMPLATE" and choose a new one.**
- Refactor the template (specifically, the modid, version and name in the gradle.properties and most of the class names)
to a different name.
- Have fun modding! :D

## Need to update to a newer commit of this template?

Check out these update guides:
- [Updating to commit `fd8e095`](update-to-fd8e095.md) (most recent update)
- [Updating to commit `301a6ca`](update-to-301a6ca.md)
- Have fun modding! :D
6 changes: 4 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ plugins {

toolkitLoomHelper {
useOneConfig {
version = "1.0.0-alpha.47"
loaderVersion = "1.1.0-alpha.34"
version = "1.0.0-alpha.49"
loaderVersion = "1.1.0-alpha.35"

usePolyMixin = true
polyMixinVersion = "0.8.4+build.2"
Expand All @@ -28,6 +28,8 @@ toolkitLoomHelper {
+module
}
}
useDevAuth("1.2.1")
useMixinExtras("0.4.1")

// Turns off the server-side run configs, as we're building a client-sided mod.
disableRunConfigs(GameSide.SERVER)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mod.id=examplemod
# Sets the version of your mod. Make sure to update this when you make changes according to the SemVer specification.
mod.version=1.0.0
# Sets the Maven group ID of your mod. This is effectively unused but is good practice to set regardless.
mod.group=com.example
mod.group=org.polyfrost

# Configures the mod loader that we're developing for.
loom.platform=forge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/**
* The main Config entrypoint that extends the Config type and initializes your config options.
* See <a href="https://docs.polyfrost.cc/oneconfig/config/adding-options">this link</a> for more config Options
* See <a href="https://docsv1.polyfrost.org/configuration/available-options">this link</a> for more config Options
*/
public class ExampleConfig extends Config {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@Mixin(Minecraft.class)
public class MinecraftMixin {

@Inject(method = "startGame", at = @At(value = "HEAD"))
@Inject(method = "<init>", at = @At(value = "RETURN"))
private void examplemod$onStartGame(CallbackInfo ci) {
System.out.println("This is a message from the example mod!");
}
Expand Down
51 changes: 0 additions & 51 deletions update-to-301a6ca.md

This file was deleted.

21 changes: 0 additions & 21 deletions update-to-fd8e095.md

This file was deleted.

0 comments on commit 9c6f916

Please sign in to comment.