mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-28 21:56:33 +01:00
Revert to old leveldb dependency
This commit is contained in:
parent
08bdfe2fd9
commit
6db70e6058
@ -502,6 +502,7 @@ public class MCAQueue extends NMSMappedFaweQueue<FaweQueue, FaweChunk, FaweChunk
|
||||
final int mcaZ = Integer.parseInt(split[2]);
|
||||
if (filter.appliesFile(mcaX, mcaZ)) {
|
||||
File file = path.toFile();
|
||||
Fawe.debug("Apply file: " + file.getName());
|
||||
final MCAFile original = new MCAFile(MCAQueue.this, file);
|
||||
final MCAFile finalFile = filter.applyFile(original);
|
||||
if (finalFile != null && !finalFile.isDeleted()) {
|
||||
|
@ -326,11 +326,22 @@ public class ConverterFrame extends JFrame {
|
||||
debug("Loading leveldb.jar");
|
||||
|
||||
File lib = new File("lib");
|
||||
File leveldb = new File(lib, "leveldb.jar");
|
||||
|
||||
File leveldb;
|
||||
URL levelDbUrl;
|
||||
|
||||
if (new File(dirMc, "db").exists()) {
|
||||
leveldb = new File(lib, "leveldb.jar");
|
||||
levelDbUrl = new URL("https://git.io/vdZ9e");
|
||||
} else {
|
||||
leveldb = new File(lib, "leveldb-nukkit.jar");
|
||||
levelDbUrl = new URL("https://github.com/Nukkit/Nukkit/raw/master/lib/leveldb.jar");
|
||||
}
|
||||
|
||||
|
||||
// File blocksPE = new File(lib, "blocks-pe.json");
|
||||
// File blocksPC = new File(lib, "blocks-pc.json");
|
||||
|
||||
URL levelDbUrl = new URL("https://git.io/vdZ9e");
|
||||
// URL urlPE = new URL("https://git.io/vdZSj");
|
||||
// URL urlPC = new URL("https://git.io/vdZSx");
|
||||
|
||||
@ -342,6 +353,8 @@ public class ConverterFrame extends JFrame {
|
||||
|
||||
File newWorldFile = new File(output, dirMc.getName());
|
||||
|
||||
debug("Starting converter...");
|
||||
|
||||
MapConverter converter = MapConverter.get(dirMc, newWorldFile);
|
||||
converter.accept(ConverterFrame.this);
|
||||
} catch (Throwable e) {
|
||||
|
Loading…
Reference in New Issue
Block a user