Skip to content

Commit

Permalink
Merge pull request #450 from Mindgamesnl/feature/drop-legacy-migration
Browse files Browse the repository at this point in the history
Drop legacy module
  • Loading branch information
Mindgamesnl authored Aug 11, 2024
2 parents 6d816f0 + 1a5906d commit a7b180d
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@

import java.io.BufferedReader;
import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
Expand All @@ -33,13 +29,6 @@ public ModuleLoaderService() {
File modulesDir = new File(MagicValue.STORAGE_DIRECTORY.get(File.class), "/modules");
modulesDir.mkdirs();

// download default modules
if (!new File(modulesDir, "migrate.map-to-storm.jar").exists()) {
log("Downloading default migration module");
InputStream in = new URL("https://github.com/Mindgamesnl/OpenAudioMc/raw/master/modules/migrate.map-to-storm.jar").openStream();
Files.copy(in, Paths.get(new File(modulesDir, "migrate.map-to-storm.jar").getPath()), StandardCopyOption.REPLACE_EXISTING);
}

if (modulesDir.isDirectory()) {
log("Loading modules from " + modulesDir.getAbsolutePath());
for (File file : modulesDir.listFiles()) {
Expand Down

0 comments on commit a7b180d

Please sign in to comment.