Force sounds/entity effects to sync in an effort ot hopefully fix a rare crash #361
This commit is contained in:
@@ -77,9 +77,10 @@ public class PacketsManager {
|
||||
soundsListenerEnabled = enabled;
|
||||
|
||||
if (soundsListenerEnabled) {
|
||||
ProtocolLibrary.getProtocolManager().addPacketListener(soundsListener);
|
||||
ProtocolLibrary.getProtocolManager().getAsynchronousManager().registerAsyncHandler(soundsListener)
|
||||
.syncStart();
|
||||
} else {
|
||||
ProtocolLibrary.getProtocolManager().removePacketListener(soundsListener);
|
||||
ProtocolLibrary.getProtocolManager().getAsynchronousManager().unregisterAsyncHandler(soundsListener);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user