Skip to content

Commit

Permalink
Fix #486
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Sep 18, 2024
1 parent f183ccc commit e94d2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/mcpe/handler/InGamePacketHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ public function handleLevelSoundEvent(LevelSoundEventPacket $packet) : bool{
}

public function handleEmote(EmotePacket $packet) : bool{
$this->player->emote($packet->getEmoteId(), $packet->getEmoteLengthTicks());
$this->player->emote($packet->getEmoteId(), $this->session->getProtocolId() >= ProtocolInfo::PROTOCOL_1_21_30 ? $packet->getEmoteLengthTicks() : 0);

Check failure on line 1033 in src/network/mcpe/handler/InGamePacketHandler.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 / PHPStan analysis

Access to constant PROTOCOL_1_21_30 on an unknown class pocketmine\network\mcpe\handler\ProtocolInfo.

Check failure on line 1033 in src/network/mcpe/handler/InGamePacketHandler.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 / PHPStan analysis

Access to constant PROTOCOL_1_21_30 on an unknown class pocketmine\network\mcpe\handler\ProtocolInfo.

Check failure on line 1033 in src/network/mcpe/handler/InGamePacketHandler.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 / PHPStan analysis

Access to constant PROTOCOL_1_21_30 on an unknown class pocketmine\network\mcpe\handler\ProtocolInfo.
return true;
}
}

0 comments on commit e94d2aa

Please sign in to comment.