Skip to content

Commit 0a0ea67

Browse files
fix: entity fixup in sponge v3 schematics (#3115)
fix: put "id" into entity tag for datafixer
1 parent f1a8ea7 commit 0a0ea67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReaderV3.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ private void readEntityContainers(
472472
transformer.transform(x, y, z, id, LinCompoundTag.of(Map.of()));
473473
continue;
474474
}
475+
tag = tag.toBuilder().putString("id", id).remove("Id").build();
475476
tag = this.dataFixer.fixUp(fixType, tag);
476477
if (tag == null) {
477478
LOGGER.warn("Failed to fix-up entity for {} @ {},{},{} - skipping", id, x, y, z);

0 commit comments

Comments
 (0)