mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Fix incorrect toNative method in 1.17 adapter
This commit is contained in:
parent
7e96853b89
commit
42dacfc7ef
@ -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<String, BinaryTag> tags = new HashMap<>();
|
||||
tag.keySet().forEach(key -> tags.put(key, tag.get(key)));
|
||||
tags.put("Id", StringBinaryTag.of(id));
|
||||
|
Loading…
Reference in New Issue
Block a user