mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 03:08:58 +00:00
Merge pull request #3274 from SopaXorzTaker/patch-1
Update Utils.php #2
This commit is contained in:
commit
2df901b064
@ -59,7 +59,7 @@ class Utils{
|
|||||||
|
|
||||||
public static function toUUID($data, $version = 2, $fixed = "8"){
|
public static function toUUID($data, $version = 2, $fixed = "8"){
|
||||||
if(strlen($data) !== 16){
|
if(strlen($data) !== 16){
|
||||||
throw new \InvalidArgumentException("Data bust be 16 bytes");
|
throw new \InvalidArgumentException("Data must be 16 bytes");
|
||||||
}
|
}
|
||||||
|
|
||||||
$hex = bin2hex($data);
|
$hex = bin2hex($data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user