Upgrade Fabric to MC 1.20.3

This commit is contained in:
Luck 2023-12-06 20:55:25 +00:00
parent f14798b368
commit 43f4d490bb
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
3 changed files with 6 additions and 7 deletions

View File

@ -13,9 +13,9 @@ repositories {
dependencies {
// https://modmuss50.me/fabric.html
minecraft 'com.mojang:minecraft:1.20.2'
mappings 'net.fabricmc:yarn:1.20.2+build.2: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',
@ -25,7 +25,7 @@ dependencies {
]
apiModules.forEach {
modImplementation(fabricApi.module(it, '0.89.3+1.20.2'))
modImplementation(fabricApi.module(it, '0.91.1+1.20.3'))
}
include(modImplementation('me.lucko:fabric-permissions-api:0.2-SNAPSHOT'))

View File

@ -30,7 +30,6 @@ import me.lucko.luckperms.common.locale.TranslationManager;
import me.lucko.luckperms.common.sender.Sender;
import me.lucko.luckperms.common.sender.SenderFactory;
import me.lucko.luckperms.fabric.mixin.ServerCommandSourceAccessor;
import me.lucko.luckperms.fabric.model.MixinUser;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
import net.luckperms.api.util.Tristate;
@ -118,6 +117,6 @@ public class FabricSenderFactory extends SenderFactory<LPFabricPlugin, ServerCom
}
public static Text toNativeText(Component component) {
return Text.Serializer.fromJson(GsonComponentSerializer.gson().serialize(component));
return Text.Serialization.fromJson(GsonComponentSerializer.gson().serialize(component));
}
}

View File

@ -2,7 +2,7 @@
shadow = "8.1.1"
blossom = "1.3.1"
forgegradle = "[6.0,6.2)"
loom = "1.3-SNAPSHOT"
loom = "1.4-SNAPSHOT"
licenser = "0.6.1"
[plugins]