mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-01 19:53:41 +00:00
Fix mce::UUID::isEmpty()
This commit is contained in:
parent
67688fe8e7
commit
0b5cb1e186
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user