Skip to content

Commit

Permalink
Fix wrong argument
Browse files Browse the repository at this point in the history
  • Loading branch information
AkmalFairuz committed Sep 21, 2024
1 parent fe3fa49 commit 98ea2ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static function read(PacketSerializer $in) : self{
$containerName = FullContainerName::read($in);
$slotId = $in->getByte();
$stackId = $in->readGenericTypeNetworkId();
return new self($containerName, $slotId, $stackId);
return new self($containerName->getContainerId(), $slotId, $stackId);
}

public function write(PacketSerializer $out) : void{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static function read(PacketSerializer $in) : self{
for($i = 0, $len = $in->getUnsignedVarInt(); $i < $len; ++$i){
$slots[] = ItemStackResponseSlotInfo::read($in);
}
return new self($containerName, $slots);
return new self($containerName->getContainerId(), $slots);
}

public function write(PacketSerializer $out) : void{
Expand Down

0 comments on commit 98ea2ef

Please sign in to comment.