Skip to content

Commit

Permalink
Fix ParticleIds (<= 1.20.50) (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
6kek6 authored Aug 16, 2024
1 parent a9af3ce commit cea5a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LevelEventPacket.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static function create(int $eventId, int $eventData, ?Vector3 $position)
}

public static function standardParticle(int $particleId, int $data, Vector3 $position, int $protocolId) : self{
if($protocolId <= ProtocolInfo::PROTOCOL_1_20_50 && $particleId >= ParticleIds::WIND_EXPLOSION){
if($protocolId <= ProtocolInfo::PROTOCOL_1_20_50 && $particleId >= ParticleIds::BREEZE_WIND_EXPLOSION){
--$particleId;
}
return self::create(LevelEvent::ADD_PARTICLE_MASK | $particleId, $data, $position);
Expand Down

0 comments on commit cea5a53

Please sign in to comment.