Skip to content

Commit

Permalink
FullContainerName: handle null dynamicId
Browse files Browse the repository at this point in the history
  • Loading branch information
AkmalFairuz committed Sep 20, 2024
1 parent 008c6e8 commit 8f4e02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/inventory/FullContainerName.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function write(PacketSerializer $out) : void{
if($out->getProtocol() >= ProtocolInfo::PROTOCOL_729) {
$out->writeOptional($this->dynamicId, $out->putLInt(...));
}else{
$out->putLInt($this->dynamicId);
$out->putLInt($this->dynamicId ?? 0);
}
}
}

0 comments on commit 8f4e02f

Please sign in to comment.