Add german translation for new setting

This commit is contained in:
FlorianMichael 2024-05-09 20:02:48 +02:00
parent 60a26d2bb1
commit 41a2139a98
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
3 changed files with 9 additions and 8 deletions

View File

@ -21,6 +21,6 @@ package de.florianmichael.viafabricplus.injection.access;
public interface IPlayerListHud {
void viaFabricPlus$setMaxPlayers(int maxPlayers);
void viaFabricPlus$setMaxPlayers(final int maxPlayers);
}

View File

@ -43,16 +43,16 @@ import java.util.stream.Collectors;
@Mixin(PlayerListHud.class)
public abstract class MixinPlayerListHud implements IPlayerListHud {
@Unique
private static final Comparator<PlayerListEntry> viaFabricPlus$FIFO_COMPARATOR
= Comparator.comparingInt(ple -> ((IPlayerListEntry) ple).viaFabricPlus$getIndex());
@Shadow
@Final
private MinecraftClient client;
@Unique
private static final Comparator<PlayerListEntry> viaFabricPlus$FIFO_COMPARATOR = Comparator.comparingInt(e -> ((IPlayerListEntry) e).viaFabricPlus$getIndex());
@Unique
private int viaFabricPlus$maxSlots;
@Unique
private boolean viaFabricPlus$hideSkins = true;
@ -97,8 +97,8 @@ public abstract class MixinPlayerListHud implements IPlayerListHud {
}
@Override
public void viaFabricPlus$setMaxPlayers(final int maxPlayers) {
this.viaFabricPlus$maxSlots = Math.min(200, Math.max(20,
((maxPlayers + PlayerListHud.MAX_ROWS - 1) / PlayerListHud.MAX_ROWS) * PlayerListHud.MAX_ROWS));
public void viaFabricPlus$setMaxPlayers(int maxPlayers) {
this.viaFabricPlus$maxSlots = Math.min(200, Math.max(20, ((maxPlayers + PlayerListHud.MAX_ROWS - 1) / PlayerListHud.MAX_ROWS) * PlayerListHud.MAX_ROWS));
}
}

View File

@ -83,6 +83,7 @@
"visual_settings.viafabricplus.enable_block_hit_animation": "Block-Trefferanimation aktivieren",
"visual_settings.viafabricplus.disable_server_pinging": "Server-Ping deaktivieren",
"visual_settings.viafabricplus.sideways_backwards_walking": "Seitliches rückwärts laufen",
"visual_settings.viafabricplus.enable_legacy_tablist": "Legacy-Tab-Liste aktivieren",
"bedrock.viafabricplus.login": "Dein Browser sollte sich geöffnet haben.\nDas Schließen dieses Bildschirms unterbricht den Vorgang!",
"authentication.viafabricplus.failed_to_verify_session": "ViaFabricPlus konnte deine Sitzung nicht verifizieren! Bitte logge dich in einen Account ein oder deaktiviere die BetaCraft-Authentifizierung in den ViaFabricPlus-Einstellungen.",