File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -21,24 +21,24 @@ final class CameraTargetInstruction{
21
21
22
22
public function __construct (
23
23
private ?Vector3 $ targetCenterOffset ,
24
- private int $ targetActorUniqueId //This is a little-endian long, NOT a var-long. (WTF Mojang)
24
+ private int $ actorUniqueId
25
25
){}
26
26
27
27
public function getTargetCenterOffset () : ?Vector3 { return $ this ->targetCenterOffset ; }
28
28
29
- public function getTargetActorUniqueId () : int { return $ this ->targetActorUniqueId ; }
29
+ public function getActorUniqueId () : int { return $ this ->actorUniqueId ; }
30
30
31
31
public static function read (PacketSerializer $ in ) : self {
32
32
$ targetCenterOffset = $ in ->readOptional (fn () => $ in ->getVector3 ());
33
- $ targetActorUniqueId = $ in ->getLLong (); //WHY IS THIS NON-STANDARD?
33
+ $ actorUniqueId = $ in ->getLLong ();
34
34
return new self (
35
35
$ targetCenterOffset ,
36
- $ targetActorUniqueId
36
+ $ actorUniqueId
37
37
);
38
38
}
39
39
40
40
public function write (PacketSerializer $ out ) : void {
41
41
$ out ->writeOptional ($ this ->targetCenterOffset , fn (Vector3 $ v ) => $ out ->putVector3 ($ v ));
42
- $ out ->putLLong ($ this ->targetActorUniqueId );
42
+ $ out ->putLLong ($ this ->actorUniqueId );
43
43
}
44
44
}
You can’t perform that action at this time.
0 commit comments