Fix sounds
This commit is contained in:
parent
06a2975376
commit
e351559ac9
|
@ -1098,7 +1098,6 @@ public abstract class PlayerList {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
// KigPaper end
|
// KigPaper end
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue