parent
6e3f5c1606
commit
20aca0512f
@ -1066,10 +1066,8 @@ public class PacketsManager {
|
|||||||
if (soundsListenerEnabled) {
|
if (soundsListenerEnabled) {
|
||||||
asyncSoundsListener = ProtocolLibrary.getProtocolManager().getAsynchronousManager()
|
asyncSoundsListener = ProtocolLibrary.getProtocolManager().getAsynchronousManager()
|
||||||
.registerAsyncHandler(soundsListener);
|
.registerAsyncHandler(soundsListener);
|
||||||
asyncSoundsListener.syncStart();
|
|
||||||
} else {
|
} else {
|
||||||
ProtocolLibrary.getProtocolManager().getAsynchronousManager().unregisterAsyncHandler(asyncSoundsListener);
|
ProtocolLibrary.getProtocolManager().getAsynchronousManager().unregisterAsyncHandler(asyncSoundsListener);
|
||||||
asyncSoundsListener.syncStop();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user