Skip to content

Commit

Permalink
Update Fabric/Forge to Minecraft 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lucko committed Dec 11, 2023
1 parent cbff1ae commit 87512b5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions spark-fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ configurations {

dependencies {
// https://modmuss50.me/fabric.html
minecraft 'com.mojang:minecraft:1.20.3'
mappings 'net.fabricmc:yarn:1.20.3+build.1:v2'
modImplementation 'net.fabricmc:fabric-loader:0.15.0'
minecraft 'com.mojang:minecraft:1.20.4'
mappings 'net.fabricmc:yarn:1.20.4+build.1:v2'
modImplementation 'net.fabricmc:fabric-loader:0.15.1'

Set<String> apiModules = [
"fabric-api-base",
Expand All @@ -40,7 +40,7 @@ dependencies {

// Add each module as a dependency
apiModules.forEach {
modImplementation(fabricApi.module(it, '0.91.1+1.20.3'))
modImplementation(fabricApi.module(it, '0.91.2+1.20.4'))
}

include(modImplementation('me.lucko:fabric-permissions-api:0.2-SNAPSHOT'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public UUID getUniqueId() {

@Override
public void sendMessage(Component message) {
Text component = Text.Serialization.fromJson(GsonComponentSerializer.gson().serialize(message));
Text component = Text.Serialization.fromJsonTree(GsonComponentSerializer.gson().serializeToTree(message));
super.delegate.sendMessage(component);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private static PlaceholderResult toResult(Component component) {
}

private static Text toText(Component component) {
return Text.Serialization.fromJson(GsonComponentSerializer.gson().serialize(component));
return Text.Serialization.fromJsonTree(GsonComponentSerializer.gson().serializeToTree(component));
}
}

Expand Down
4 changes: 2 additions & 2 deletions spark-forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tasks.withType(JavaCompile) {
}

minecraft {
mappings channel: 'official', version: '1.20.2'
mappings channel: 'official', version: '1.20.4'
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
}

Expand All @@ -19,7 +19,7 @@ configurations {
}

dependencies {
minecraft 'net.minecraftforge:forge:1.20.2-48.0.1'
minecraft 'net.minecraftforge:forge:1.20.4-49.0.3'
shade project(':spark-common')
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public UUID getUniqueId() {

@Override
public void sendMessage(Component message) {
MutableComponent component = Serializer.fromJson(GsonComponentSerializer.gson().serialize(message));
MutableComponent component = Serializer.fromJson(GsonComponentSerializer.gson().serializeToTree(message));
Objects.requireNonNull(component, "component");
super.delegate.sendSystemMessage(component);
}
Expand Down

0 comments on commit 87512b5

Please sign in to comment.