From 280ade9994034471a6f5c234cced50ac209275ed Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 6 Jan 2021 13:29:52 +0000 Subject: [PATCH] fix NBT in memory optimized clipboard --- .../fawe/object/clipboard/MemoryOptimizedClipboard.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/object/clipboard/MemoryOptimizedClipboard.java b/worldedit-core/src/main/java/com/boydti/fawe/object/clipboard/MemoryOptimizedClipboard.java index 766057964..65ec74564 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/object/clipboard/MemoryOptimizedClipboard.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/object/clipboard/MemoryOptimizedClipboard.java @@ -257,11 +257,11 @@ public class MemoryOptimizedClipboard extends LinearClipboard { @Override public boolean setTile(int x, int y, int z, CompoundTag tag) { - nbtMap.put(new IntTriple(x, y, z), tag); - Map values = tag.getValue(); + final Map values = new HashMap<>(tag.getValue()); values.put("x", new IntTag(x)); values.put("y", new IntTag(y)); values.put("z", new IntTag(z)); + nbtMap.put(new IntTriple(x, y, z), new CompoundTag(values)); return true; }