1
0
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:
Camotoy
2022-03-22 23:01:00 -04:00
parent 87d70be10d
commit 10383d31ab
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);
}