Skip to content

Commit

Permalink
feat: Support Minecraft 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
magicus committed Jun 13, 2024
1 parent 2d60495 commit 644ddf7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.3
yarn_mappings=1.20.3+build.1
loader_version=0.15.10
minecraft_version=1.21
yarn_mappings=1.21+build.1
loader_version=0.15.11

# Mod Properties
project_name=Mod Settings
mod_version=1.1.0+1.20.3
mod_version=1.2.0+1.21
maven_group=se.icus.mag
archives_base_name=modsettings

# Fabric api
fabric_version=0.91.1+1.20.3
fabric_version=0.100.1+1.21
4 changes: 2 additions & 2 deletions src/main/java/se/icus/mag/modsettings/gui/ModListWidget.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public int getRowWidth() {
}

@Override
protected int getScrollbarPositionX() {
return super.getScrollbarPositionX() + 32;
protected int getScrollbarX() {
return super.getScrollbarX() + 32;
}

public void addAll(ModSettingsScreen.ModSettingsOption[] options) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"fabricloader": ">=0.7.4",
"fabric-screen-api-v1": ">=1.0.4",
"fabric-key-binding-api-v1": ">=1.0.1",
"minecraft": "~1.20.3"
"minecraft": "~1.21"
}
}

0 comments on commit 644ddf7

Please sign in to comment.