mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-27 14:36:30 +01:00
another crafting table backup point
This commit is contained in:
1 parent
350ada405f
commit
e010da4376
15 files changed
+1752
-852
No files matched your search
@@ -31,14 +31,18 @@ int IUIScene_PauseMenu::ExitGameDialogReturned(void *pParam,int iPad,C4JStorage:
|
||||
const bool consoleAutosave = (controlType == 0 || controlType == 1 || controlType == 4); // windows, xbox one and ps4
|
||||
const bool autosaveEnabled = consoleAutosave && !StorageManager.GetSaveDisabled() && (app.GetGameHostOption(eGameHostOption_DisableSaving) == 0);
|
||||
|
||||
if(autosaveEnabled)
|
||||
{
|
||||
MinecraftServer::getInstance()->setSaveOnExit(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
MinecraftServer::getInstance()->setSaveOnExit(false);
|
||||
MinecraftServer* serverInstance = MinecraftServer::getInstance();
|
||||
if (serverInstance != nullptr) {
|
||||
if (autosaveEnabled)
|
||||
{
|
||||
serverInstance->setSaveOnExit(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
serverInstance->setSaveOnExit(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(pScene) pScene->SetIgnoreInput(true);
|
||||
app.SetAction(iPad,eAppAction_ExitWorld);
|
||||
|
||||
Reference in new issue
Block a user