From 8de317294128cc63c9431999eba1c1eaccb06140 Mon Sep 17 00:00:00 2001 From: Pierre Maurice Schwang Date: Tue, 18 Jun 2024 00:50:57 +0200 Subject: [PATCH] chore: don't hold a lazyreference (seems harder to gc with already computed value?) --- .../core/extent/clipboard/io/FastSchematicReaderV3.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReaderV3.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReaderV3.java index d453d706c..97df32b03 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReaderV3.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReaderV3.java @@ -309,7 +309,7 @@ public class FastSchematicReaderV3 implements ClipboardReader { LOGGER.warn("Failed to fix-up entity for {} @ {},{},{} - skipping", id, pos.x(), pos.y(), pos.z()); return; } - if (target.createEntity(new Location(target, pos), new BaseEntity(entityType, LazyReference.computed(tag))) == null) { + if (target.createEntity(new Location(target, pos), new BaseEntity(entityType, new CompoundTag(tag))) == null) { LOGGER.warn("Failed to create entity - does the clipboard support entities?"); } });