summaryrefslogtreecommitdiffstats
path: root/src/NBT/ByteTag.hpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-07-21 16:17:40 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-07-21 16:29:26 +0200
commit59fe1ba0255e5e1c4a24658f7ccc34dc294aeb50 (patch)
tree6659532fa46bc4aa0129c2723454f5b71bda5f1d /src/NBT/ByteTag.hpp
parent4288935d701a871b91838dd6c837cc6c2060271f (diff)
downloadMinedMap-59fe1ba0255e5e1c4a24658f7ccc34dc294aeb50.tar
MinedMap-59fe1ba0255e5e1c4a24658f7ccc34dc294aeb50.zip
NBT: make Tag constructors public, remove friend declarations
Diffstat (limited to 'src/NBT/ByteTag.hpp')
-rw-r--r--src/NBT/ByteTag.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/NBT/ByteTag.hpp b/src/NBT/ByteTag.hpp
index dc7e212..28b8b1a 100644
--- a/src/NBT/ByteTag.hpp
+++ b/src/NBT/ByteTag.hpp
@@ -34,15 +34,13 @@ namespace NBT {
class ByteTag : public Tag {
private:
- friend class Tag;
-
uint8_t value;
+public:
ByteTag(Buffer *buffer) {
value = buffer->get8();
}
-public:
virtual Type getType() const {
return Type::Byte;
}