Skip to content

Commit

Permalink
fix wrong emote packet
Browse files Browse the repository at this point in the history
  • Loading branch information
AkmalFairuz committed Sep 22, 2024
1 parent 98ea2ef commit db5ff45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EmotePacket.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function decodePayload(PacketSerializer $in) : void{
$this->actorRuntimeId = $in->getActorRuntimeId();
$this->emoteId = $in->getString();
if($in->getProtocol() >= ProtocolInfo::PROTOCOL_729){
$this->emoteLengthTicks = $in->getInt();
$this->emoteLengthTicks = $in->getUnsignedVarInt();
}
if($in->getProtocol() >= ProtocolInfo::PROTOCOL_589){
$this->xboxUserId = $in->getString();
Expand All @@ -83,7 +83,7 @@ protected function encodePayload(PacketSerializer $out) : void{
$out->putActorRuntimeId($this->actorRuntimeId);
$out->putString($this->emoteId);
if($out->getProtocol() >= ProtocolInfo::PROTOCOL_729){
$out->putInt($this->emoteLengthTicks);
$out->putUnsignedVarInt($this->emoteLengthTicks);
}
if($out->getProtocol() >= ProtocolInfo::PROTOCOL_589){
$out->putString($this->xboxUserId);
Expand Down

0 comments on commit db5ff45

Please sign in to comment.