Skip to content

Commit

Permalink
Fix #294: Prevent Geyser UUIDs from being filtered
Browse files Browse the repository at this point in the history
This assumes that all Geyser UUIDs have a UUID version of zero. I am not sure if this could cause any issues with NPCs, since that's what the check was originally for.
  • Loading branch information
spnda committed Aug 6, 2024
1 parent dbcbdf7 commit ae54246
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public void run() {
final var stream = Arrays.stream(offlinePlayers)
.map(OfflinePlayer::getUniqueId)
// Other plugins/mods might use other UUID versions for NPCs or other players.
.filter(uuid -> uuid.version() == 3 || uuid.version() == 4);
.filter(uuid -> uuid.version() == 3 || uuid.version() == 4 || uuid.version() == 0);

try {
var filterStream = BlockProt.getProfileService().findAllByUuid(stream.toList()).stream()
Expand Down

0 comments on commit ae54246

Please sign in to comment.