Fixed reading in schematics failing if they had tile entity data because of a Spigot change.

Dieser Commit ist enthalten in:
Matthew Miller 2018-08-06 17:57:40 +10:00
Ursprung 1d9546f9c7
Commit d11c3ae600

Datei anzeigen

@ -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<String, Tag> values = tileEntitiesMap.get(pt);
Map<String, Tag> values = Maps.newHashMap(tileEntitiesMap.get(pt));
for (NBTCompatibilityHandler handler : COMPATIBILITY_HANDLERS) {
if (handler.isAffectedBlock(state)) {
handler.updateNBT(state, values);