mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
No need to check WorldEdit schematics for bad entities
This commit is contained in:
parent
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();
|
||||
|
Loading…
Reference in New Issue
Block a user