Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +01:00
Replace show coordinates string
Use the one built into Bedrock for less maintenance.
Dieser Commit ist enthalten in:
Ursprung
87d70be10d
Commit
10383d31ab
@ -62,7 +62,7 @@ public class SettingsUtils {
|
||||
|
||||
// Client can only see its coordinates if reducedDebugInfo is disabled and coordinates are enabled in geyser config.
|
||||
if (session.getPreferencesCache().isAllowShowCoordinates()) {
|
||||
builder.toggle("geyser.settings.option.coordinates", session.getPreferencesCache().isPrefersShowCoordinates());
|
||||
builder.toggle("%createWorldScreen.showCoordinates", session.getPreferencesCache().isPrefersShowCoordinates());
|
||||
}
|
||||
|
||||
if (CooldownUtils.getDefaultShowCooldown() != CooldownUtils.CooldownType.DISABLED) {
|
||||
@ -175,6 +175,10 @@ public class SettingsUtils {
|
||||
}
|
||||
|
||||
private static String translateEntry(String key, String locale) {
|
||||
if (key.startsWith("%")) {
|
||||
// Bedrock will translate
|
||||
return key;
|
||||
}
|
||||
if (key.startsWith("geyser.")) {
|
||||
return GeyserLocale.getPlayerLocaleString(key, locale);
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 51e0ae2b527e3548ef82b65f33541f5eaeba2308
|
||||
Subproject commit f073cf2b9e62d1a9da45ac23448d59ca71074339
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren