Skip to content

Commit

Permalink
fix typo :/
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanCraft623 committed Aug 15, 2024
1 parent 1657bd4 commit d3f964c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function getIngredients() : array{ return $this->ingredients; }
public static function read(PacketSerializer $in) : self{
$recipeId = $in->readRecipeNetId();
$repetitions = $in->getByte();
$repetition2 = $in->getByte(); //repetitions property is sent twice, mojang...
$repetitions2 = $in->getByte(); //repetitions property is sent twice, mojang...
$ingredients = [];
for($i = 0, $count = $in->getByte(); $i < $count; ++$i){
$ingredients[] = $in->getRecipeIngredient();
Expand All @@ -65,7 +65,7 @@ public static function read(PacketSerializer $in) : self{
public function write(PacketSerializer $out) : void{
$out->writeRecipeNetId($this->recipeId);
$out->putByte($this->repetitions);
$out->putByte($this->repetition2);
$out->putByte($this->repetitions2);
$out->putByte(count($this->ingredients));
foreach($this->ingredients as $ingredient){
$out->putRecipeIngredient($ingredient);
Expand Down

0 comments on commit d3f964c

Please sign in to comment.