summaryrefslogtreecommitdiffstats
path: root/src/NBT/ByteArrayTag.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NBT/ByteArrayTag.hpp')
-rw-r--r--src/NBT/ByteArrayTag.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/NBT/ByteArrayTag.hpp b/src/NBT/ByteArrayTag.hpp
index 1e4f2f9..0d58dc8 100644
--- a/src/NBT/ByteArrayTag.hpp
+++ b/src/NBT/ByteArrayTag.hpp
@@ -40,12 +40,16 @@ private:
const uint8_t *value;
public:
+ static const MakeType<ByteArrayTag> Type;
+
+
ByteArrayTag(Buffer *buffer) {
len = buffer->get32();
value = buffer->get(len);
}
- virtual Type getType() const {
- return Type::ByteArray;
+
+ virtual const TagType & getType() const {
+ return Type;
}
virtual void print(std::ostream& os, const std::string &indent) const {