mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Replace show coordinates string
Use the one built into Bedrock for less maintenance.
This commit is contained in:
parent
87d70be10d
commit
10383d31ab
2 changed files with 6 additions and 2 deletions
|
@ -62,7 +62,7 @@ public class SettingsUtils {
|
||||||
|
|
||||||
// Client can only see its coordinates if reducedDebugInfo is disabled and coordinates are enabled in geyser config.
|
// Client can only see its coordinates if reducedDebugInfo is disabled and coordinates are enabled in geyser config.
|
||||||
if (session.getPreferencesCache().isAllowShowCoordinates()) {
|
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) {
|
if (CooldownUtils.getDefaultShowCooldown() != CooldownUtils.CooldownType.DISABLED) {
|
||||||
|
@ -175,6 +175,10 @@ public class SettingsUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String translateEntry(String key, String locale) {
|
private static String translateEntry(String key, String locale) {
|
||||||
|
if (key.startsWith("%")) {
|
||||||
|
// Bedrock will translate
|
||||||
|
return key;
|
||||||
|
}
|
||||||
if (key.startsWith("geyser.")) {
|
if (key.startsWith("geyser.")) {
|
||||||
return GeyserLocale.getPlayerLocaleString(key, locale);
|
return GeyserLocale.getPlayerLocaleString(key, locale);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 51e0ae2b527e3548ef82b65f33541f5eaeba2308
|
Subproject commit f073cf2b9e62d1a9da45ac23448d59ca71074339
|
Loading…
Reference in a new issue