public StorageManagerInternal(ModuleEnvironment environment, EngineEntityManager entityManager, boolean storeChunksInZips) {
this.entityManager = entityManager;
this.environment = environment;
this.storeChunksInZips = storeChunksInZips;
this.prefabSerializer = new PrefabSerializer(entityManager.getComponentLibrary(), entityManager.getTypeSerializerLibrary());
entityManager.subscribe(this);
this.storagePathProvider = new StoragePathProvider(PathManager.getInstance().getCurrentSavePath());
this.saveTransactionHelper = new SaveTransactionHelper(storagePathProvider);
this.saveThreadManager = TaskMaster.createFIFOTaskMaster("Saving", 1);
this.config = CoreRegistry.get(Config.class);