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