mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
PacketSerializer: fix unnecessary FQN
This commit is contained in:
parent
8171b18002
commit
4bcc7e09cb
@ -61,6 +61,7 @@ use pocketmine\network\mcpe\protocol\types\StructureEditorData;
|
|||||||
use pocketmine\network\mcpe\protocol\types\StructureSettings;
|
use pocketmine\network\mcpe\protocol\types\StructureSettings;
|
||||||
use pocketmine\utils\BinaryDataException;
|
use pocketmine\utils\BinaryDataException;
|
||||||
use pocketmine\utils\BinaryStream;
|
use pocketmine\utils\BinaryStream;
|
||||||
|
use Ramsey\Uuid\Uuid;
|
||||||
use Ramsey\Uuid\UuidInterface;
|
use Ramsey\Uuid\UuidInterface;
|
||||||
use function count;
|
use function count;
|
||||||
use function strlen;
|
use function strlen;
|
||||||
@ -95,7 +96,7 @@ class PacketSerializer extends BinaryStream{
|
|||||||
//This is two little-endian longs: bytes 7-0 followed by bytes 15-8
|
//This is two little-endian longs: bytes 7-0 followed by bytes 15-8
|
||||||
$p1 = strrev($this->get(8));
|
$p1 = strrev($this->get(8));
|
||||||
$p2 = strrev($this->get(8));
|
$p2 = strrev($this->get(8));
|
||||||
return \Ramsey\Uuid\Uuid::fromBytes($p1 . $p2);
|
return Uuid::fromBytes($p1 . $p2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function putUUID(UuidInterface $uuid) : void{
|
public function putUUID(UuidInterface $uuid) : void{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user