mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-03 03:12:46 +02:00
Update to Minecraft 1.21.1
This commit is contained in:
@@ -13,8 +13,8 @@ repositories {
|
||||
|
||||
dependencies {
|
||||
// https://modmuss50.me/fabric.html
|
||||
minecraft 'com.mojang:minecraft:1.21'
|
||||
mappings 'net.fabricmc:yarn:1.21+build.1'
|
||||
minecraft 'com.mojang:minecraft:1.21.1'
|
||||
mappings 'net.fabricmc:yarn:1.21.1+build.3:v2'
|
||||
modImplementation 'net.fabricmc:fabric-loader:0.15.11'
|
||||
|
||||
Set<String> apiModules = [
|
||||
@@ -26,7 +26,7 @@ dependencies {
|
||||
]
|
||||
|
||||
apiModules.forEach {
|
||||
modImplementation(fabricApi.module(it, '0.100.1+1.21'))
|
||||
modImplementation(fabricApi.module(it, '0.102.1+1.21.1'))
|
||||
}
|
||||
|
||||
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().comp_1951();
|
||||
String language = ((ServerPlayerEntity) sender.getEntity()).getClientOptions().language();
|
||||
locale = language == null ? null : TranslationManager.parseLocale(language);
|
||||
} else {
|
||||
locale = null;
|
||||
|
Reference in New Issue
Block a user