@@ -71,17 +71,17 @@ protected ImportManager createImportManager() {
7171 protected SectionStorage createStorage (WorldIdentifier identifier ) {
7272 var ctx = new ConfigBuildCtx ();
7373
74- // File sharedFolder = basePath.resolveSibling(StringUtils.substringAfter(basePath.toFile().getName(), ".")).toFile();
75- // String finalBasePath = sharedFolder.exists() && sharedFolder.isDirectory() ? sharedFolder.getAbsolutePath() : basePath.toString();
74+ File sharedFolder = basePath .resolveSibling (StringUtils .substringAfter (basePath .toFile ().getName (), "." )).toFile ();
75+ String finalBasePath = sharedFolder .exists () && sharedFolder .isDirectory () ? sharedFolder .getAbsolutePath () : basePath .toString ();
7676
77- // ctx.setProperty(ConfigBuildCtx.BASE_SAVE_PATH, finalBasePath);
78- // ctx.setProperty(ConfigBuildCtx.WORLD_IDENTIFIER, getWorldId(identifier));
79- // ctx.setProperty(ConfigBuildCtx.PLAYER_UUID, Minecraft.getInstance().getUser().getProfileId().toString().replace(':','-'));
80-
81- ctx .setProperty (ConfigBuildCtx .BASE_SAVE_PATH , this .basePath .toString ()); // comment three for unified folder lod
82- ctx .setProperty (ConfigBuildCtx .WORLD_IDENTIFIER , identifier .getWorldId ()); // and uncomment the five ones above
77+ ctx .setProperty (ConfigBuildCtx .BASE_SAVE_PATH , finalBasePath );
78+ ctx .setProperty (ConfigBuildCtx .WORLD_IDENTIFIER , getWorldId (identifier ));
8379 ctx .setProperty (ConfigBuildCtx .PLAYER_UUID , Minecraft .getInstance ().getUser ().getProfileId ().toString ().replace (':' ,'-' ));
8480
81+ //ctx.setProperty(ConfigBuildCtx.BASE_SAVE_PATH, this.basePath.toString()); // comment three for unified folder lod
82+ //ctx.setProperty(ConfigBuildCtx.WORLD_IDENTIFIER, identifier.getWorldId()); // and uncomment the five ones above
83+ //ctx.setProperty(ConfigBuildCtx.PLAYER_UUID, Minecraft.getInstance().getUser().getProfileId().toString().replace(':','-'));
84+
8585 ctx .pushPath (ConfigBuildCtx .DEFAULT_STORAGE_PATH );
8686
8787 return this .config .sectionStorageConfig .build (ctx );
0 commit comments