Fixed crash when server initializes a new world
This commit is contained in:
parent
49e93e4309
commit
165c6e5b22
1 changed files with 2 additions and 2 deletions
|
@ -105,9 +105,9 @@ public class DataFixerAPI {
|
|||
*/
|
||||
public static boolean fixData(LevelStorageSource.LevelStorageAccess levelStorageAccess, boolean showUI, Consumer<Boolean> onResume){
|
||||
File levelPath = levelStorageAccess.getLevelPath(LevelResource.ROOT).toFile();
|
||||
|
||||
File levelDat = levelStorageAccess.getLevelPath(LevelResource.LEVEL_DATA_FILE).toFile();
|
||||
boolean newWorld = false;
|
||||
if (!levelPath.exists()) {
|
||||
if (!levelDat.exists()) {
|
||||
BCLib.LOGGER.info("Creating a new World, no fixes needed");
|
||||
newWorld = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue