Skip to content

Commit d3464d3

Browse files
committed
Update to 1.21
compatible with >=1.21 (current latest 1.21.1)
1 parent 2c1bee5 commit d3464d3

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ processResources {
5656
}
5757

5858
tasks.withType(JavaCompile).configureEach {
59-
it.options.release = 17
59+
it.options.release = 21
6060
}
6161

6262
java {
@@ -65,8 +65,8 @@ java {
6565
// If you remove this line, sources will not be generated.
6666
withSourcesJar()
6767

68-
sourceCompatibility = JavaVersion.VERSION_17
69-
targetCompatibility = JavaVersion.VERSION_17
68+
sourceCompatibility = JavaVersion.VERSION_21
69+
targetCompatibility = JavaVersion.VERSION_21
7070
}
7171

7272
jar {

gradle.properties

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

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

1111
# Mod Properties
@@ -14,6 +14,6 @@ maven_group=com.gmail.gorayan3838
1414
archives_base_name=NoteBetterFabric
1515

1616
# Dependencies
17-
fabric_version=0.87.2+1.19.4
17+
fabric_version=0.102.0+1.21
1818
#* check this on https://www.curseforge.com/minecraft/mc-mods/cloth-config/files
19-
cloth_version=10.1.105
19+
cloth_version=15.0.130

src/client/java/com/gmail/gorayan3838/notebetterfabric/mixin/NoteBlockMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ private void injected(World world, @Nullable PlayerEntity player, double x, doub
2727
BlockPos pos = new BlockPos((int) Math.floor(x), (int) Math.floor(y), (int) Math.floor(z));
2828
SoundConfig.Mapping[] mappings = NoteBetterFabricClient.CONFIG.getMappings();
2929
List<SoundConfig.Mapping> filteredMappings = Arrays.stream(mappings)
30-
.filter(mapping -> world.getBlockState(pos.down()).getBlock().equals(Registries.BLOCK.get(new Identifier(mapping.getBlock()))))
30+
.filter(mapping -> world.getBlockState(pos.down()).getBlock().equals(Registries.BLOCK.get(Identifier.of(mapping.getBlock()))))
3131
.toList();
3232
filteredMappings.forEach(mapping -> {
3333
SoundConfig.Sound soundInfo = mapping.getSound();
@@ -36,7 +36,7 @@ private void injected(World world, @Nullable PlayerEntity player, double x, doub
3636
x,
3737
y,
3838
z,
39-
SoundEvent.of(new Identifier(soundInfo.getSound())),
39+
SoundEvent.of(Identifier.of(soundInfo.getSound())),
4040
SoundCategory.RECORDS,
4141
soundInfo.getVolume(),
4242
soundInfo.getPitch() * pitch,

src/client/resources/NoteBetterFabric.mixins.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"required": true,
33
"minVersion": "0.8",
44
"package": "com.gmail.gorayan3838.notebetterfabric.mixin",
5-
"compatibilityLevel": "JAVA_17",
5+
"compatibilityLevel": "JAVA_21",
66
"mixins": [
77
"NoteBlockMixin"
88
],

src/main/resources/fabric.mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"depends": {
2121
"fabricloader": "*",
2222
"fabric": "*",
23-
"minecraft": ">=1.19.3",
24-
"java": ">=17",
23+
"minecraft": ">=1.21",
24+
"java": ">=21",
2525
"cloth-config": "*"
2626
}
2727
}

0 commit comments

Comments
 (0)