9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-29 11:39:14 +00:00

fix: don't apply <1.21 attribute modifiers on >1.21 servers

This commit is contained in:
William
2024-08-02 18:07:28 +01:00
parent 845abf370a
commit 07da1c04ce
2 changed files with 15 additions and 5 deletions

View File

@@ -384,6 +384,10 @@ public interface Data {
};
}
public boolean hasUuid() {
return uuid != null;
}
@NotNull
public UUID uuid() {
return uuid != null ? uuid : UUID.nameUUIDFromBytes(name.getBytes());