Skip to content

Commit

Permalink
[yggdrasil-api] lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
mochaaP authored Nov 6, 2021
1 parent 7214cdb commit 0db6142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/yggdrasil-api/src/Models/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ public static function generateUuidV3(string $name): string
{
// @see https://gist.github.com/games647/2b6a00a8fc21fd3b88375f03c9e2e603
$data = hex2bin(md5('OfflinePlayer:'.$name));
$data[6] = chr(ord($data[6]) & 0x0f | 0x30);
$data[8] = chr(ord($data[8]) & 0x3f | 0x80);
$data[6] = chr(ord($data[6]) & 0x0F | 0x30);
$data[8] = chr(ord($data[8]) & 0x3F | 0x80);

return bin2hex($data);
}
Expand Down

0 comments on commit 0db6142

Please sign in to comment.