mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 05:32:18 -07:00
Hide soul speed particles for vanished players (#12152)
Co-authored-by: Tamion <70228790+notTamion@users.noreply.github.com>
This commit is contained in:
@@ -870,11 +870,11 @@
|
||||
double zOffset,
|
||||
double speed
|
||||
) {
|
||||
+ // CraftBukkit start - visibility api support
|
||||
+ // Paper start - visibility api support
|
||||
+ return this.sendParticlesSource(null, type, overrideLimiter, alwaysShow, posX, posY, posZ, particleCount, xOffset, yOffset, zOffset, speed);
|
||||
+ }
|
||||
+ public <T extends ParticleOptions> int sendParticlesSource(
|
||||
+ @javax.annotation.Nullable ServerPlayer sender,
|
||||
+ @javax.annotation.Nullable Entity sender,
|
||||
+ T type,
|
||||
+ boolean overrideLimiter,
|
||||
+ boolean alwaysShow,
|
||||
@@ -891,7 +891,7 @@
|
||||
+ }
|
||||
+ public <T extends ParticleOptions> int sendParticlesSource(
|
||||
+ List<ServerPlayer> receivers,
|
||||
+ @javax.annotation.Nullable ServerPlayer sender,
|
||||
+ @javax.annotation.Nullable Entity sender,
|
||||
+ T type,
|
||||
+ boolean overrideLimiter,
|
||||
+ boolean alwaysShow,
|
||||
@@ -904,7 +904,7 @@
|
||||
+ double zOffset,
|
||||
+ double speed
|
||||
+ ) {
|
||||
+ // CraftBukkit end - visibility api support
|
||||
+ // Paper end - visibility api support
|
||||
ClientboundLevelParticlesPacket clientboundLevelParticlesPacket = new ClientboundLevelParticlesPacket(
|
||||
type, overrideLimiter, alwaysShow, posX, posY, posZ, (float)xOffset, (float)yOffset, (float)zOffset, (float)speed, particleCount
|
||||
);
|
||||
|
Reference in New Issue
Block a user