From 440c8078c66cc2a8f2abf58468df7df7246ee33b Mon Sep 17 00:00:00 2001 From: "Vega Nicholas S." <142091702+nicholass003@users.noreply.github.com> Date: Thu, 19 Sep 2024 03:58:42 +0700 Subject: [PATCH] CameraTargetInstruction: Use little-endian long for ActorUniqueId (#271) thanks for the consistency mojang... :/ Co-authored-by: IvanCraft623 --- src/types/camera/CameraTargetInstruction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/camera/CameraTargetInstruction.php b/src/types/camera/CameraTargetInstruction.php index 90deda16..7e5c03fe 100644 --- a/src/types/camera/CameraTargetInstruction.php +++ b/src/types/camera/CameraTargetInstruction.php @@ -30,7 +30,7 @@ public function getActorUniqueId() : int{ return $this->actorUniqueId; } public static function read(PacketSerializer $in) : self{ $targetCenterOffset = $in->readOptional(fn() => $in->getVector3()); - $actorUniqueId = $in->getActorUniqueId(); + $actorUniqueId = $in->getLLong(); //why be consistent mojang ????? return new self( $targetCenterOffset, $actorUniqueId @@ -39,6 +39,6 @@ public static function read(PacketSerializer $in) : self{ public function write(PacketSerializer $out) : void{ $out->writeOptional($this->targetCenterOffset, fn(Vector3 $v) => $out->putVector3($v)); - $out->putActorUniqueId($this->actorUniqueId); + $out->putLLong($this->actorUniqueId); } }