Skip to content

Commit

Permalink
Remove BC breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Sep 19, 2024
1 parent 69cb933 commit 632cf9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/entity/Human.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function jump() : void{
}
}

public function emote(string $emoteId, int $emoteLengthTicks) : void{
public function emote(string $emoteId, int $emoteLengthTicks = 0) : void{
NetworkBroadcastUtils::broadcastEntityEvent(
$this->getViewers(),
fn(EntityEventBroadcaster $broadcaster, array $recipients) => $broadcaster->onEmote($recipients, $this, $emoteId, $emoteLengthTicks)
Expand Down
2 changes: 1 addition & 1 deletion src/player/Player.php
Original file line number Diff line number Diff line change
Expand Up @@ -2013,7 +2013,7 @@ public function toggleSwim(bool $swim) : bool{
return true;
}

public function emote(string $emoteId, int $emoteLengthTicks) : void{
public function emote(string $emoteId, int $emoteLengthTicks = 0) : void{
$currentTick = $this->server->getTick();
if($currentTick - $this->lastEmoteTick > 5){
$this->lastEmoteTick = $currentTick;
Expand Down

0 comments on commit 632cf9d

Please sign in to comment.