Skip to content

Commit

Permalink
Update Fabric to 1.20.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lucko committed Dec 6, 2023
1 parent fbb861f commit cbff1ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions spark-fabric/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import net.fabricmc.loom.task.RemapJarTask

plugins {
id 'fabric-loom' version '1.3-SNAPSHOT'
id 'fabric-loom' version '1.4-SNAPSHOT'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}

Expand All @@ -28,9 +28,9 @@ configurations {

dependencies {
// https://modmuss50.me/fabric.html
minecraft 'com.mojang:minecraft:1.20.2'
mappings 'net.fabricmc:yarn:1.20.2+build.1:v2'
modImplementation 'net.fabricmc:fabric-loader:0.14.22'
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'

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

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

include(modImplementation('me.lucko:fabric-permissions-api:0.1-SNAPSHOT'))
include(modImplementation('me.lucko:fabric-permissions-api:0.2-SNAPSHOT'))

modImplementation('eu.pb4:placeholder-api:2.0.0-beta.4+1.19')

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.Serializer.fromJson(GsonComponentSerializer.gson().serialize(message));
Text component = Text.Serialization.fromJson(GsonComponentSerializer.gson().serialize(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.Serializer.fromJson(GsonComponentSerializer.gson().serialize(component));
return Text.Serialization.fromJson(GsonComponentSerializer.gson().serialize(component));
}
}

Expand Down

0 comments on commit cbff1ae

Please sign in to comment.