mirror of
https://github.com/LCEMP/LCEMP.git
synced 2026-06-02 15:04:31 +00:00
prepare code for dedicated server support
This commit is contained in:
@@ -922,6 +922,7 @@ void ServerLevel::saveToDisc(ProgressListener *progressListener, bool autosave)
|
||||
// 4J-PB - check that saves are enabled
|
||||
if(StorageManager.GetSaveDisabled()) return;
|
||||
|
||||
#ifndef _DEDICATED_SERVER
|
||||
// Check if we are using a trial version of a texture pack (which will be the case for going into the mash-up pack world with a trial version)
|
||||
if(!Minecraft::GetInstance()->skins->isUsingDefaultSkin())
|
||||
{
|
||||
@@ -935,6 +936,7 @@ void ServerLevel::saveToDisc(ProgressListener *progressListener, bool autosave)
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (progressListener != NULL) progressListener->progressStage(IDS_PROGRESS_SAVING_TO_DISC);
|
||||
levelStorage->flushSaveFile(autosave);
|
||||
|
||||
Reference in New Issue
Block a user