diff options
Diffstat (limited to 'src/NBT/ListTag.hpp')
-rw-r--r-- | src/NBT/ListTag.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/NBT/ListTag.hpp b/src/NBT/ListTag.hpp index 833c41e..d86abdb 100644 --- a/src/NBT/ListTag.hpp +++ b/src/NBT/ListTag.hpp @@ -48,10 +48,9 @@ public: template<typename T> class ListTag : public ListTagBase, public std::vector<std::shared_ptr<const T>> { private: - friend class Tag; - Type type; +public: ListTag(Type type0, Buffer *buffer) : type(type0) { uint32_t len = buffer->get32(); @@ -61,7 +60,6 @@ private: (*this)[i] = std::static_pointer_cast<const T>(Tag::readTag(type, buffer)); } -public: virtual Type getSubtype() const { return type; } |