Skip to content

Commit 618f299

Browse files
committed
Update mod version to 1.2.4 and update to 1.21.
1 parent ae7ef78 commit 618f299

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies {
3737
include "io.wispforest:owo-sentinel:${project.owo_version}"
3838

3939
// gson
40-
implementation "com.google.code.gson:gson:2.8.6"
40+
implementation 'com.google.code.gson:gson:2.8.9'
4141

4242
// Uncomment the following line to enable the deprecated Fabric API modules.
4343
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
@@ -54,7 +54,7 @@ processResources {
5454
}
5555

5656
tasks.withType(JavaCompile).configureEach {
57-
it.options.release = 17
57+
it.options.release = 21
5858
}
5959

6060
java {
@@ -63,8 +63,8 @@ java {
6363
// If you remove this line, sources will not be generated.
6464
withSourcesJar()
6565

66-
sourceCompatibility = JavaVersion.VERSION_17
67-
targetCompatibility = JavaVersion.VERSION_17
66+
sourceCompatibility = JavaVersion.VERSION_21
67+
targetCompatibility = JavaVersion.VERSION_21
6868
}
6969

7070
jar {

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ org.gradle.parallel=true
44

55
# Fabric Properties
66
# check these on https://fabricmc.net/develop
7-
minecraft_version=1.20.6
8-
yarn_mappings=1.20.6+build.1
7+
minecraft_version=1.21
8+
yarn_mappings=1.21+build.2
99
loader_version=0.15.11
1010

1111
# Fabric API
12-
fabric_version=0.98.0+1.20.6
12+
fabric_version=0.100.3+1.21
1313

1414
# Mod Properties
15-
mod_version=1.2.3
15+
mod_version=1.2.4
1616
maven_group=xyz.imcodist.quickmenu
1717
archives_base_name=quick-menu
1818

1919
# owo-lib
20-
owo_version=0.12.8+1.20.5
20+
owo_version=0.12.10+1.21

src/main/java/xyz/imcodist/quickmenu/data/ActionButtonData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static ActionButtonData fromJSON(ActionButtonDataJSON json) {
6565
});
6666

6767
if (json.icon != null) {
68-
data.icon = new ItemStack(Registries.ITEM.get(new Identifier(json.icon)));
68+
data.icon = new ItemStack(Registries.ITEM.get(Identifier.of(json.icon)));
6969
data.icon.set(DataComponentTypes.CUSTOM_MODEL_DATA, new CustomModelDataComponent(json.customModelData));
7070
}
7171

src/main/java/xyz/imcodist/quickmenu/ui/components/QuickMenuButton.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public QuickMenuButton(ItemStack icon, Consumer<ButtonComponent> onPress, Consum
2323

2424
sizing(Sizing.fixed(26), Sizing.fixed(26));
2525
renderer(ButtonComponent.Renderer.texture(
26-
new Identifier("quickmenu", "textures/switcher_buttons.png"),
26+
Identifier.of("quickmenu", "textures/switcher_buttons.png"),
2727
0, 0,
2828
64, 64
2929
));

src/main/java/xyz/imcodist/quickmenu/ui/popups/ItemPickerUI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public ItemPickerUI() {
5252
mainLayout.child(searchBoxLayout);
5353

5454
TextureComponent textureComponent = Components.texture(
55-
new Identifier("quickmenu", "textures/search_icon.png"),
55+
Identifier.of("quickmenu", "textures/search_icon.png"),
5656
0, 0,
5757
12, 12,
5858
12, 12

src/main/java/xyz/imcodist/quickmenu/ui/surfaces/SwitcherSurface.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void drawNineSlicedTexture(OwoUIDrawContext context, int x, int y, int wi
5858
}
5959

6060
public void drawTexture(OwoUIDrawContext context, int x, int y, int sourceX, int sourceY, int sourceWidth, int sourceHeight, int textureWidth, int textureHeight) {
61-
context.drawTexture(new Identifier("quickmenu", "textures/switcher_textures.png"), x, y, sourceX, sourceY, sourceWidth, sourceHeight, textureWidth, textureHeight);
61+
context.drawTexture(Identifier.of("quickmenu", "textures/switcher_textures.png"), x, y, sourceX, sourceY, sourceWidth, sourceHeight, textureWidth, textureHeight);
6262
}
6363

6464
public void drawRepeatingTexture(OwoUIDrawContext context, int x, int y, int sourceX, int sourceY, int sourceWidth, int sourceHeight, int textureWidth, int textureHeight, int width, int height) {

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
],
3131
"depends": {
3232
"fabricloader": ">=0.15.11",
33-
"minecraft": "~1.20.5",
33+
"minecraft": "~1.21",
3434
"java": ">=21",
3535
"fabric-api": "*",
3636

0 commit comments

Comments
 (0)