Skip to content

Commit f562f54

Browse files
fix(ParticlePacket): enforce new packet constructor for 1.21.4 and above instead of 1.21.5
1 parent e0bcdf6 commit f562f54

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</h1>
55

66
<p align="center">
7-
<b>A spigot library supporting all particles from <code>1.8</code> to <code>1.21</code></b><br><br>
7+
<b>A spigot library supporting all particles from <code>1.8</code> to <code>1.21.11</code></b><br><br>
88
<a href="https://app.codacy.com/manual/GeorgeV220/ParticleLib?utm_source=github.com&utm_medium=referral&utm_content=GeorgeV220/ParticleLib&utm_campaign=Badge_Grade_Dashboard">
99
<img src="https://api.codacy.com/project/badge/Grade/166f125b74014326831ca21c1d7df65b" alt="codacy"/>
1010
</a>
@@ -30,7 +30,7 @@ Open an issue for a bug or feature request. **Don't** open an issue to ask for s
3030

3131
## Features
3232

33-
* Multiversion support from 1.8 - 1.21.4 <sup>(All in one Jar)</sup>
33+
* Multiversion support from 1.8 - 1.21.11 <sup>(All in one Jar)</sup>
3434
* Colored particles
3535
* Particles with custom velocities
3636
* Particles with textures

lib/src/main/java/com/georgev22/particle/ParticlePacket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ private Object createPacket(Object param, float locationX, float locationY, floa
423423
return packetConstructor.newInstance(param, true, locationX, locationY, locationZ, offsetX, offsetY, offsetZ, speed, amount, data);
424424
if (ReflectionUtils.MINECRAFT_VERSION.isBelow(MinecraftVersion.V1_15_R1))
425425
return packetConstructor.newInstance(param, true, locationX, locationY, locationZ, offsetX, offsetY, offsetZ, speed, amount);
426-
if (ReflectionUtils.MINECRAFT_VERSION.isBelow(MinecraftVersion.V1_21_R4)) {
426+
if (ReflectionUtils.MINECRAFT_VERSION.isBelow(MinecraftVersion.V1_21_R3)) {
427427
return packetConstructor.newInstance(param, true, (double) locationX, (double) locationY, (double) locationZ, offsetX, offsetY, offsetZ, speed, amount);
428428
}
429429
return packetConstructor.newInstance(param, true, true, (double) locationX, (double) locationY, (double) locationZ, offsetX, offsetY, offsetZ, speed, amount);

0 commit comments

Comments
 (0)