diff --git a/LiteLoader/Header/MC/Types.hpp b/LiteLoader/Header/MC/Types.hpp index 3d62461..be1554d 100644 --- a/LiteLoader/Header/MC/Types.hpp +++ b/LiteLoader/Header/MC/Types.hpp @@ -65,7 +65,7 @@ public: MCAPI std::string asString() const; MCAPI static UUID fromString(std::string const&); inline bool isEmpty() const{ - return a && b; + return *this == mce::UUID::EMPTY; }; MCAPI static UUID seedFromString(std::string const&); MCAPI static class mce::UUID EMPTY; @@ -73,6 +73,9 @@ public: inline operator bool() const { return !isEmpty(); } + inline bool operator==(mce::UUID &res) const { + return (this->a == res.a) && (this->b == res.b); + } }; enum class ColorPalette {