Skip to content

Commit 5922bb0

Browse files
committed
refactor: revert property name
1 parent 16671b9 commit 5922bb0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/types/camera/CameraTargetInstruction.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@ final class CameraTargetInstruction{
2121

2222
public function __construct(
2323
private ?Vector3 $targetCenterOffset,
24-
private int $targetActorUniqueId //This is a little-endian long, NOT a var-long. (WTF Mojang)
24+
private int $actorUniqueId
2525
){}
2626

2727
public function getTargetCenterOffset() : ?Vector3{ return $this->targetCenterOffset; }
2828

29-
public function getTargetActorUniqueId() : int{ return $this->targetActorUniqueId; }
29+
public function getActorUniqueId() : int{ return $this->actorUniqueId; }
3030

3131
public static function read(PacketSerializer $in) : self{
3232
$targetCenterOffset = $in->readOptional(fn() => $in->getVector3());
33-
$targetActorUniqueId = $in->getLLong(); //WHY IS THIS NON-STANDARD?
33+
$actorUniqueId = $in->getLLong();
3434
return new self(
3535
$targetCenterOffset,
36-
$targetActorUniqueId
36+
$actorUniqueId
3737
);
3838
}
3939

4040
public function write(PacketSerializer $out) : void{
4141
$out->writeOptional($this->targetCenterOffset, fn(Vector3 $v) => $out->putVector3($v));
42-
$out->putLLong($this->targetActorUniqueId);
42+
$out->putLLong($this->actorUniqueId);
4343
}
4444
}

0 commit comments

Comments
 (0)