Open Mercenarioo opened 1 year ago
Is a cached exception
It is cached, but it's unnecessary code that is being launched on every incoming packet.
It is cached, but it's unnecessary code that is being launched on every incoming packet.
By removing that code you're adding a chance to break some random NMS plugin
Actually tested this change, packets are sent asynchronous without the exception causing all events being asynchronous, you can't even join the server
Is CancelledPacketHandleException needed? Doesn't throwing the exception on every incoming packet cause performance problems? Thanks for answer!