Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 11:00:05 +01:00
No need to check WorldEdit schematics for bad entities
Dieser Commit ist enthalten in:
Ursprung
6db588a19f
Commit
91de441403
@ -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();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren