Skip to content

Commit

Permalink
Fixed packet
Browse files Browse the repository at this point in the history
  • Loading branch information
Superomarking committed Dec 5, 2024
1 parent 7ab89e4 commit 556da34
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ protected function decodePayload(PacketSerializer $in) : void{
}
}
if ($in->getProtocol() >= CustomProtocolInfo::PROTOCOL_1_21_50) {
$in->putUUID($this->worldTemplateId);
$in->putString($this->worldTemplateVersion);
$this->worldTemplateId = $in->getUUID();
$this->worldTemplateVersion = $in->getString();
}

$resourcePackCount = $in->getLShort();
Expand Down Expand Up @@ -109,8 +109,8 @@ protected function encodePayload(PacketSerializer $out) : void{
}
}
if ($out->getProtocol() >= CustomProtocolInfo::PROTOCOL_1_21_50) {
$this->worldTemplateId = $out->getUUID();
$this->worldTemplateVersion = $out->getString();
$out->putUUID($this->worldTemplateId);
$out->putString($this->worldTemplateVersion);
}
$out->putLShort(count($this->resourcePackEntries));
foreach($this->resourcePackEntries as $entry){
Expand Down

0 comments on commit 556da34

Please sign in to comment.