Skip to content

Commit

Permalink
Backport to 1.19.4
Browse files Browse the repository at this point in the history
  • Loading branch information
celestialfault committed Jan 5, 2024
1 parent 541dafa commit db5abb9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 47 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.4
minecraft_version=1.19.4
yarn_mappings=1.19.4+build.2
loader_version=0.15.3

# Mod Properties
Expand All @@ -14,6 +14,6 @@ maven_group=me.celestialfault.toggletogglesprint
archives_base_name=toggle-toggle-sprint

# Dependencies
fabric_version=0.91.2+1.20.2
yacl_version=3.2.1+1.20.2
modmenu_version=8.0.0
fabric_version=0.87.2+1.19.4
yacl_version=3.1.1+1.19.4
modmenu_version=6.3.1
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private OptionGroup buildSprint() {
.binding(ToggleState.UNCHANGED, () -> defaultSprintState, value -> this.defaultSprintState = value)
.customController(option -> EnumControllerBuilder.create(option)
.enumClass(ToggleState.class)
.formatValue(key -> Text.translatable("toggle-toggle-sprint.state." + key.toString().toLowerCase()))
.valueFormatter(key -> Text.translatable("toggle-toggle-sprint.state." + key.toString().toLowerCase()))
.build())
.build())
.option(Option.<Boolean>createBuilder()
Expand Down Expand Up @@ -166,7 +166,7 @@ private OptionGroup buildSneak() {
.binding(ToggleState.UNCHANGED, () -> defaultSneakState, value -> this.defaultSneakState = value)
.customController(option -> EnumControllerBuilder.create(option)
.enumClass(ToggleState.class)
.formatValue(key -> Text.translatable("toggle-toggle-sprint.state." + key.toString().toLowerCase()))
.valueFormatter(key -> Text.translatable("toggle-toggle-sprint.state." + key.toString().toLowerCase()))
.build())
.build())
.option(Option.<Boolean>createBuilder()
Expand Down

This file was deleted.

8 changes: 4 additions & 4 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"modmenu": ["me.celestialfault.toggletogglesprint.ModMenuCompat"]
},
"accessWidener": "toggle-toggle-sprint.accesswidener",
"mixins": ["toggle-toggle-sprint.mixins.json"],
"depends": {
"fabricloader": ">=0.15",
"fabric-api": "*",
"minecraft": ">=1.20.1",
"java": ">=17"
"minecraft": ">=1.19.4 <1.20.1",
"java": ">=17",
"fabric-key-binding-api-v1": "*",
"fabric-lifecycle-events-v1": "*"
},
"recommends": {
"yet_another_config_lib_v3": "*",
Expand Down
12 changes: 0 additions & 12 deletions src/main/resources/toggle-toggle-sprint.mixins.json

This file was deleted.

0 comments on commit db5abb9

Please sign in to comment.