Update Fabric to MC 1.21 (#3918)

Co-authored-by: Wolfdv1 <[email protected]>
This commit is contained in:
Wolfdv1andWolfdv1 authored and GitHub committed 2024-06-16 10:45:09 +01:00
1 parent 9805f8b2c4
commit f984ebbb46
3 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -13,9 +13,9 @@ repositories {
dependencies {
// https://modmuss50.me/fabric.html
minecraft 'com.mojang:minecraft:1.20.6'
mappings 'net.fabricmc:yarn:1.20.6+build.1:v2'
modImplementation 'net.fabricmc:fabric-loader:0.15.10'
minecraft 'com.mojang:minecraft:1.21'
mappings 'net.fabricmc:yarn:1.21+build.1'
modImplementation 'net.fabricmc:fabric-loader:0.15.11'
Set<String> apiModules = [
'fabric-api-base',
@@ -25,7 +25,7 @@ dependencies {
]
apiModules.forEach {
modImplementation(fabricApi.module(it, '0.97.8+1.20.6'))
modImplementation(fabricApi.module(it, '0.100.1+1.21'))
}
include(modImplementation('me.lucko:fabric-permissions-api:0.3.1'))
@@ -77,7 +77,7 @@ public class FabricSenderFactory extends SenderFactory<LPFabricPlugin, ServerCom
protected void sendMessage(ServerCommandSource sender, Component message) {
final Locale locale;
if (sender.getEntity() instanceof ServerPlayerEntity) {
String language = ((ServerPlayerEntity) sender.getEntity()).getClientOptions().language();
String language = ((ServerPlayerEntity) sender.getEntity()).getClientOptions().comp_1951();
locale = language == null ? null : TranslationManager.parseLocale(language);
} else {
locale = null;
@@ -48,7 +48,7 @@ import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
public class PluginMessageMessenger extends AbstractPluginMessageMessenger implements ServerPlayNetworking.PlayPayloadHandler<PluginMessageMessenger.PluginMessagePayload> {
private static final Identifier CHANNEL = new Identifier(AbstractPluginMessageMessenger.CHANNEL);
private static final Identifier CHANNEL = Identifier.of(AbstractPluginMessageMessenger.CHANNEL);
private final LPFabricPlugin plugin;