mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2025-02-28 18:31:06 +01:00
*
This commit is contained in:
parent
d93f9f0553
commit
4b9058bc7a
@ -81,8 +81,6 @@ public class WikiScraper {
|
||||
int endIndex = text.indexOf(footer, headerIndex);
|
||||
String part = text.substring(headerIndex, endIndex == -1 ? text.length() : endIndex);
|
||||
|
||||
// System.out.println(part);
|
||||
|
||||
for (String line : part.split("\n")) {
|
||||
if (line.startsWith("| {{")) {
|
||||
String[] split = line.split("\\|\\|");
|
||||
|
@ -65,8 +65,6 @@ public class ConverterFrame extends JFrame {
|
||||
private BrowseButton browseSave;
|
||||
|
||||
public ConverterFrame() throws Exception {
|
||||
async(() -> downloadDependencies());
|
||||
|
||||
final MovablePanel movable = new MovablePanel(this);
|
||||
movable.setBorder(BorderFactory.createLineBorder(new Color(0x28, 0x28, 0x29)));
|
||||
|
||||
@ -294,6 +292,8 @@ public class ConverterFrame extends JFrame {
|
||||
movable.add(bottomBar, BorderLayout.SOUTH);
|
||||
this.setVisible(true);
|
||||
this.repaint();
|
||||
|
||||
async(() -> downloadDependencies());
|
||||
}
|
||||
|
||||
public void prompt(String message) {
|
||||
@ -368,7 +368,7 @@ public class ConverterFrame extends JFrame {
|
||||
try {
|
||||
MainUtil.download(levelDbUrl, leveldb);
|
||||
MainUtil.loadURLClasspath(leveldb.toURL());
|
||||
} catch (IOException e) {
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
@ -376,7 +376,7 @@ public class ConverterFrame extends JFrame {
|
||||
pool.submit((Runnable) () -> {
|
||||
try {
|
||||
scraper.scapeOrCache(WikiScraper.Wiki.ITEM_MAPPINGS_PE);
|
||||
} catch (IOException e) {
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
@ -384,7 +384,7 @@ public class ConverterFrame extends JFrame {
|
||||
pool.submit((Runnable) () -> {
|
||||
try {
|
||||
scraper.scapeOrCache(WikiScraper.Wiki.ITEM_MAPPINGS_PC);
|
||||
} catch (IOException e) {
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
@ -392,7 +392,7 @@ public class ConverterFrame extends JFrame {
|
||||
pool.submit((Runnable) () -> {
|
||||
try {
|
||||
scraper.scapeOrCache(WikiScraper.Wiki.ENTITY_MAPPINGS);
|
||||
} catch (IOException e) {
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
|
@ -6,7 +6,7 @@ import com.boydti.fawe.jnbt.anvil.MCAQueue;
|
||||
import com.boydti.fawe.jnbt.anvil.MCAQueueMap;
|
||||
import com.boydti.fawe.jnbt.anvil.MutableMCABackedBaseBlock;
|
||||
import com.boydti.fawe.jnbt.anvil.filters.RemapFilter;
|
||||
import com.boydti.fawe.object.clipboard.ClipboardRemapper;
|
||||
import com.boydti.fawe.object.clipboard.remap.ClipboardRemapper;
|
||||
import com.boydti.fawe.object.io.PGZIPOutputStream;
|
||||
import com.boydti.fawe.util.MemUtil;
|
||||
import com.boydti.fawe.util.ReflectionUtils;
|
||||
@ -158,16 +158,19 @@ public class LevelDBToMCAFile extends MapConverter {
|
||||
List<NamedTag> tags = read(value);
|
||||
for (NamedTag nt : tags) {
|
||||
com.sk89q.jnbt.Tag ent = nt.getTag();
|
||||
// chunk.setEntity((CompoundTag) ent);
|
||||
chunk.setEntity((CompoundTag) ent);
|
||||
}
|
||||
break;
|
||||
case PendingTicks:
|
||||
break;
|
||||
case BlockExtraData:
|
||||
System.out.println("EXTRA " + chunk.getX() + "," + chunk.getZ());
|
||||
break;
|
||||
case LegacyTerrain:
|
||||
case Data2DLegacy:
|
||||
Fawe.debug("Legacy terrain not supported, please update. " + tag);
|
||||
case BiomeState:
|
||||
case FinalizedState:
|
||||
case PendingTicks:
|
||||
case BlockExtraData:
|
||||
case Version:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user