Add comments to changed code

This commit is contained in:
dordsor21 2021-12-29 16:06:49 +00:00
parent f38859237a
commit 3c2394afa4
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B
2 changed files with 4 additions and 0 deletions

View File

@ -436,10 +436,12 @@ public final class PaperweightAdapter implements BukkitImplAdapter<net.minecraft
net.minecraft.nbt.CompoundTag tag = new net.minecraft.nbt.CompoundTag();
readEntityIntoTag(mcEntity, tag);
//FAWE start - BinaryTag
return new BaseEntity(
com.sk89q.worldedit.world.entity.EntityTypes.get(id),
LazyReference.from(() -> (CompoundBinaryTag) toNativeBinary(tag))
);
//FAWE end
}
@Nullable

View File

@ -427,10 +427,12 @@ public final class PaperweightAdapter implements BukkitImplAdapter<net.minecraft
net.minecraft.nbt.CompoundTag tag = new net.minecraft.nbt.CompoundTag();
readEntityIntoTag(mcEntity, tag);
//FAWE start - BinaryTag
return new BaseEntity(
com.sk89q.worldedit.world.entity.EntityTypes.get(id),
LazyReference.from(() -> (CompoundBinaryTag) toNativeBinary(tag))
);
//FAWE end
}
@Nullable