summaryrefslogtreecommitdiffstats
path: root/src/NBT/FloatTag.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NBT/FloatTag.hpp')
-rw-r--r--src/NBT/FloatTag.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/NBT/FloatTag.hpp b/src/NBT/FloatTag.hpp
index ad9cc64..7bb8df2 100644
--- a/src/NBT/FloatTag.hpp
+++ b/src/NBT/FloatTag.hpp
@@ -46,6 +46,16 @@ public:
virtual Type getType() const {
return Type::Float;
}
+
+ virtual void print(std::ostream& os, const std::string &) const {
+ union {
+ uint32_t i;
+ float f;
+ };
+
+ i = Buffer::parse32(ptr);
+ os << f;
+ }
};
}