fix(jui): correctly check if host or not for disconnect text

This commit is contained in:
Sally Knight 2026-03-19 18:57:19 +03:00
parent e6585a6732
commit d968855cc4

View file

@ -29,7 +29,7 @@ void PauseScreen::init() {
eXuiServerAction_PauseServer, (void*)TRUE);
buttons.push_back(new Button(1, width / 2 - 100, height / 4 + 24 * 5 + yo,
I18n::get(L"menu.returnToMenu")));
if (minecraft->isClientSide()) {
if (!g_NetworkManager.IsHost()) {
buttons[0]->msg = I18n::get(L"menu.disconnect");
}