Skip to content

Commit

Permalink
Changed NamedTag holder to shared_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlegiantJGC committed Sep 5, 2024
1 parent 5a913d8 commit e2d27ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amulet_nbt/pybind/tag/py_named_tag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void init_named_tag(py::module& m) {
}
);

py::class_<AmuletNBT::NamedTag> NamedTag(m, "NamedTag");
py::class_<AmuletNBT::NamedTag, std::shared_ptr<AmuletNBT::NamedTag>> NamedTag(m, "NamedTag");
NamedTag.def(
py::init([](std::variant<std::monostate, AmuletNBT::TagNode> value, std::string name) {
return std::visit([&name](auto&& tag) {
Expand Down

0 comments on commit e2d27ab

Please sign in to comment.