mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Fix unclickable home privacy toggle button
This commit is contained in:
1 parent
6cba6f866b
commit
374115c68b
1 file changed
+5
-3
@@ -326,9 +326,11 @@ public class EditHomeCommand extends CommandBase implements TabCompletable, Cons
|
||||
formattedName)
|
||||
.ifPresent(this::add);
|
||||
}
|
||||
plugin.getLocales().getRawLocale("edit_home_menu_manage_buttons",
|
||||
Locales.escapeMineDown(formattedName), showPrivacyToggleButton ? plugin.getLocales()
|
||||
.getRawLocale("edit_home_menu_toggle_privacy_button").orElse("") : "")
|
||||
final String escapedName = Locales.escapeMineDown(formattedName);
|
||||
plugin.getLocales().getRawLocale("edit_home_menu_manage_buttons", escapedName,
|
||||
showPrivacyToggleButton ? plugin.getLocales()
|
||||
.getRawLocale("edit_home_menu_toggle_privacy_button", escapedName)
|
||||
.orElse("") : "")
|
||||
.map(MineDown::new).ifPresent(this::add);
|
||||
plugin.getLocales().getLocale("edit_home_menu_meta_edit_buttons",
|
||||
formattedName)
|
||||
|
||||
Reference in new issue
Block a user