Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
AkmalFairuz committed Mar 13, 2024
1 parent 5af8c71 commit 26de0fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MobEffectPacket.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ protected function encodePayload(PacketSerializer $out) : void{
$out->putVarInt($this->effectId);
$out->putVarInt($this->amplifier);
$out->putBool($this->particles);
$out->putVarInt($this->duration);
if($out->getProtocol() >= ProtocolInfo::PROTOCOL_662){
$out->putVarInt($this->duration);
$out->putLLong($this->tick);
}
}

Expand Down

0 comments on commit 26de0fb

Please sign in to comment.