Replace show coordinates string

Use the one built into Bedrock for less maintenance.
This commit is contained in:
Camotoy 2022-03-22 23:01:00 -04:00
parent 87d70be10d
commit 10383d31ab
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F
2 changed files with 6 additions and 2 deletions

View file

@ -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