3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-19 09:20:08 +01:00

chore: don't hold a lazyreference (seems harder to gc with already computed value?)

Dieser Commit ist enthalten in:
Pierre Maurice Schwang 2024-06-18 00:50:57 +02:00
Ursprung 60cc4244e3
Commit 8de3172941
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 37E613079F3E5BB9

Datei anzeigen

@ -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?");
}
});