Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/bedrock-1.21.50'
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Dec 5, 2024
2 parents 2cbe464 + 130b5eb commit 42d92d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serializer/BitSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function write(PacketSerializer $out, int $length = null) : void{
$nextShift = $currentShift + self::SHIFT;
if($nextShift >= self::INT_BITS){
$nextShift -= self::INT_BITS;
$bits |= $parts[++$currentIndex] << (self::SHIFT - $nextShift);
$bits |= ($parts[++$currentIndex] ?? 0) << (self::SHIFT - $nextShift);
}
$currentShift = $nextShift;

Expand Down

0 comments on commit 42d92d0

Please sign in to comment.