From d11c3ae600303f51dc51dcef7905b8a589ff4d9d Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Mon, 6 Aug 2018 17:57:40 +1000 Subject: [PATCH] Fixed reading in schematics failing if they had tile entity data because of a Spigot change. --- .../worldedit/extent/clipboard/io/SpongeSchematicReader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicReader.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicReader.java index 7b582203d..b68e09e43 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicReader.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicReader.java @@ -21,6 +21,7 @@ package com.sk89q.worldedit.extent.clipboard.io; import static com.google.common.base.Preconditions.checkNotNull; +import com.google.common.collect.Maps; import com.sk89q.jnbt.ByteArrayTag; import com.sk89q.jnbt.CompoundTag; import com.sk89q.jnbt.IntArrayTag; @@ -196,7 +197,7 @@ public class SpongeSchematicReader extends NBTSchematicReader { BlockVector pt = new BlockVector(x, y, z); try { if (tileEntitiesMap.containsKey(pt)) { - Map values = tileEntitiesMap.get(pt); + Map values = Maps.newHashMap(tileEntitiesMap.get(pt)); for (NBTCompatibilityHandler handler : COMPATIBILITY_HANDLERS) { if (handler.isAffectedBlock(state)) { handler.updateNBT(state, values);