mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-05 09:09:40 +01:00
Fix the async sounds listener
This commit is contained in:
parent
a06a81182e
commit
6e3f5c1606
@ -1066,8 +1066,10 @@ public class PacketsManager {
|
||||
if (soundsListenerEnabled) {
|
||||
asyncSoundsListener = ProtocolLibrary.getProtocolManager().getAsynchronousManager()
|
||||
.registerAsyncHandler(soundsListener);
|
||||
asyncSoundsListener.syncStart();
|
||||
} else {
|
||||
ProtocolLibrary.getProtocolManager().getAsynchronousManager().unregisterAsyncHandler(asyncSoundsListener);
|
||||
asyncSoundsListener.syncStop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user