[Client] Disallow opening inventory menu when not logged in

pull/492/head
terrabyte25 6 years ago committed by GitHub
parent b7090b2550
commit 35755eb1f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1137,6 +1137,17 @@ namespace MWInput
if (MyGUI::InputManager::getInstance ().isModalAny())
return;
/*
Start of tes3mp addition
Ignore attempts to open inventory if the player has not logged in on the server yet
*/
if (!mwmp::Main::get().getLocalPlayer()->isLoggedIn())
return;
/*
End of tes3mp addition
*/
// Toggle between game mode and inventory mode
if(!MWBase::Environment::get().getWindowManager()->isGuiMode())
MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Inventory);

Loading…
Cancel
Save