mirror of
https://github.com/GeyserMC/Geyser.git
synced 2026-01-03 14:12:21 +00:00
Replace show coordinates string
Use the one built into Bedrock for less maintenance.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Submodule core/src/main/resources/languages updated: 51e0ae2b52...f073cf2b9e
Reference in New Issue
Block a user