mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
fix(jui): correctly check if host or not for disconnect text
This commit is contained in:
parent
e6585a6732
commit
d968855cc4
|
|
@ -29,7 +29,7 @@ void PauseScreen::init() {
|
||||||
eXuiServerAction_PauseServer, (void*)TRUE);
|
eXuiServerAction_PauseServer, (void*)TRUE);
|
||||||
buttons.push_back(new Button(1, width / 2 - 100, height / 4 + 24 * 5 + yo,
|
buttons.push_back(new Button(1, width / 2 - 100, height / 4 + 24 * 5 + yo,
|
||||||
I18n::get(L"menu.returnToMenu")));
|
I18n::get(L"menu.returnToMenu")));
|
||||||
if (minecraft->isClientSide()) {
|
if (!g_NetworkManager.IsHost()) {
|
||||||
buttons[0]->msg = I18n::get(L"menu.disconnect");
|
buttons[0]->msg = I18n::get(L"menu.disconnect");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue