From 42dacfc7ef7b5ffd7492c80dd88b6e44a4229f9b Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 4 Jan 2022 13:28:29 +0000 Subject: [PATCH] Fix incorrect toNative method in 1.17 adapter --- .../adapter/impl/fawe/v1_17_R1_2/PaperweightFaweAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-bukkit/adapters/adapter-1_17_1/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_17_R1_2/PaperweightFaweAdapter.java b/worldedit-bukkit/adapters/adapter-1_17_1/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_17_R1_2/PaperweightFaweAdapter.java index 6d1faa718..0ff2fb4b0 100644 --- a/worldedit-bukkit/adapters/adapter-1_17_1/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_17_R1_2/PaperweightFaweAdapter.java +++ b/worldedit-bukkit/adapters/adapter-1_17_1/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_17_R1_2/PaperweightFaweAdapter.java @@ -365,7 +365,7 @@ public final class PaperweightFaweAdapter extends CachedBukkitAdapter implements final net.minecraft.nbt.CompoundTag minecraftTag = new net.minecraft.nbt.CompoundTag(); readEntityIntoTag(mcEntity, minecraftTag); //add Id for AbstractChangeSet to work - final CompoundBinaryTag tag = (CompoundBinaryTag) toNative(minecraftTag); + final CompoundBinaryTag tag = (CompoundBinaryTag) toNativeBinary(minecraftTag); final Map tags = new HashMap<>(); tag.keySet().forEach(key -> tags.put(key, tag.get(key))); tags.put("Id", StringBinaryTag.of(id));