From e2d27abd6c60cc8eb87712f0aa56ab79e204405e Mon Sep 17 00:00:00 2001 From: gentlegiantJGC Date: Thu, 5 Sep 2024 09:58:42 +0100 Subject: [PATCH] Changed NamedTag holder to shared_ptr --- src/amulet_nbt/pybind/tag/py_named_tag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amulet_nbt/pybind/tag/py_named_tag.cpp b/src/amulet_nbt/pybind/tag/py_named_tag.cpp index d1e7158b..3a8bde88 100644 --- a/src/amulet_nbt/pybind/tag/py_named_tag.cpp +++ b/src/amulet_nbt/pybind/tag/py_named_tag.cpp @@ -61,7 +61,7 @@ void init_named_tag(py::module& m) { } ); - py::class_ NamedTag(m, "NamedTag"); + py::class_> NamedTag(m, "NamedTag"); NamedTag.def( py::init([](std::variant value, std::string name) { return std::visit([&name](auto&& tag) {