Fix sounds

This commit is contained in:
Beaness 2022-08-04 12:39:29 +02:00
parent 06a2975376
commit e351559ac9
2 changed files with 3 additions and 2 deletions

View File

@ -1098,7 +1098,6 @@ public abstract class PlayerList {
} }
} }
} }
} }
// KigPaper end // KigPaper end

View File

@ -36,7 +36,9 @@ public class WorldManager implements IWorldAccess {
// KigPaper start // KigPaper start
public void broadcastPacketIncludingSelf(EntityHuman entityhuman, String s, double d0, double d1, double d2, float f, float f1) { public void broadcastPacketIncludingSelf(EntityHuman entityhuman, String s, double d0, double d1, double d2, float f, float f1) {
// CraftBukkit - this.world.dimension // CraftBukkit - this.world.dimension
this.world.playerMap.sendPacketNearby((EntityPlayer) entityhuman, d0, d1, d2, f > 1.0F ? (double) (16.0F * f) : 16.0D, new PacketPlayOutNamedSoundEffect(s, d0, d1, d2, f, f1)); PacketPlayOutNamedSoundEffect packet = new PacketPlayOutNamedSoundEffect(s, d0, d1, d2, f, f1);
((EntityPlayer) entityhuman).playerConnection.sendPacket(packet);
this.world.playerMap.sendPacketNearby((EntityPlayer) entityhuman, d0, d1, d2, f > 1.0F ? (double) (16.0F * f) : 16.0D, packet);
} }
// KigPaper end // KigPaper end