3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-24 18:10:08 +01:00

No need to check WorldEdit schematics for bad entities

Dieser Commit ist enthalten in:
dordsor21 2021-01-05 17:21:35 +00:00
Ursprung 6db588a19f
Commit 91de441403
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -99,6 +99,7 @@ public class FastSchematicReader extends NBTSchematicReader {
private char[] biomePalette;
private BlockVector3 min = BlockVector3.ZERO;
private boolean brokenEntities = false;
private boolean isWorldEdit = false;
/**
@ -171,6 +172,10 @@ public class FastSchematicReader extends NBTSchematicReader {
metadata.add("WEOffsetZ").withInt((i, v) -> offsetZ = v);
metadata.add("FAWEVersion").withInt((i, v) -> faweWritten = v);
StreamDelegate worldEditSection = metadata.add("WorldEdit");
worldEditSection.withValue((ValueReader<String>) (index, v) -> isWorldEdit = true);
StreamDelegate paletteDelegate = schematic.add("Palette");
paletteDelegate.withValue((ValueReader<Map<String, Object>>) (ignore, v) -> {
palette = new char[v.size()];
@ -389,7 +394,7 @@ public class FastSchematicReader extends NBTSchematicReader {
clipboard.createEntity(loc, state);
continue;
}
if (faweWritten == -1) {
if (!isWorldEdit && faweWritten == -1) {
int locX = loc.getBlockX();
int locY = loc.getBlockY();
int locZ = loc.getBlockZ();