mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-09-12 01:48:07 +02:00
Clone the packet, should resolve people hearing invisible disguises sounds
This commit is contained in:
parent
143f72a20f
commit
ae874392ab
@ -486,8 +486,10 @@ public class PacketsManager {
|
||||
PacketType.Play.Server.ENTITY_STATUS) {
|
||||
@Override
|
||||
public void onPacketSending(PacketEvent event) {
|
||||
if (event.isCancelled())
|
||||
if (event.isCancelled()) {
|
||||
return;
|
||||
}
|
||||
event.setPacket(event.getPacket().deepClone());
|
||||
StructureModifier<Object> mods = event.getPacket().getModifier();
|
||||
Player observer = event.getPlayer();
|
||||
if (event.getPacketType() == PacketType.Play.Server.NAMED_SOUND_EFFECT) {
|
||||
|
Loading…
Reference in New Issue
Block a user