SettingsUtils: fix 'show coordinates' setting persistence (#1429)

The boolean that toggled this was accidentally in the wrong spot.
This commit is contained in:
Camotoy 2020-10-18 23:29:11 -04:00 committed by GitHub
parent 0635605a24
commit 45429a9357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public class SettingsUtils {
builder.setIcon(new FormImage(FormImage.FormImageType.PATH, "textures/ui/settings_glyph_color_2x.png"));
builder.addComponent(new LabelComponent(LanguageUtils.getPlayerLocaleString("geyser.settings.title.client", language)));
builder.addComponent(new ToggleComponent(LanguageUtils.getPlayerLocaleString("geyser.settings.option.coordinates", language, session.getWorldCache().isShowCoordinates())));
builder.addComponent(new ToggleComponent(LanguageUtils.getPlayerLocaleString("geyser.settings.option.coordinates", language), session.getWorldCache().isShowCoordinates()));
if (session.getOpPermissionLevel() >= 2 || session.hasPermission("geyser.settings.server")) {