mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-08-29 09:09:51 +02:00
Update Fabric to MC 1.21 (#3918)
Co-authored-by: Wolfdv1 <Wolfdv1@github.com>
This commit is contained in:
@@ -13,9 +13,9 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// https://modmuss50.me/fabric.html
|
// https://modmuss50.me/fabric.html
|
||||||
minecraft 'com.mojang:minecraft:1.20.6'
|
minecraft 'com.mojang:minecraft:1.21'
|
||||||
mappings 'net.fabricmc:yarn:1.20.6+build.1:v2'
|
mappings 'net.fabricmc:yarn:1.21+build.1'
|
||||||
modImplementation 'net.fabricmc:fabric-loader:0.15.10'
|
modImplementation 'net.fabricmc:fabric-loader:0.15.11'
|
||||||
|
|
||||||
Set<String> apiModules = [
|
Set<String> apiModules = [
|
||||||
'fabric-api-base',
|
'fabric-api-base',
|
||||||
@@ -25,7 +25,7 @@ dependencies {
|
|||||||
]
|
]
|
||||||
|
|
||||||
apiModules.forEach {
|
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'))
|
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) {
|
protected void sendMessage(ServerCommandSource sender, Component message) {
|
||||||
final Locale locale;
|
final Locale locale;
|
||||||
if (sender.getEntity() instanceof ServerPlayerEntity) {
|
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);
|
locale = language == null ? null : TranslationManager.parseLocale(language);
|
||||||
} else {
|
} else {
|
||||||
locale = null;
|
locale = null;
|
||||||
|
@@ -48,7 +48,7 @@ import java.util.concurrent.TimeUnit;
|
|||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
|
||||||
public class PluginMessageMessenger extends AbstractPluginMessageMessenger implements ServerPlayNetworking.PlayPayloadHandler<PluginMessageMessenger.PluginMessagePayload> {
|
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;
|
private final LPFabricPlugin plugin;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user