Hi, this fixes an issue where PacketHooker::isRegistered() doesn't work.
Call PacketHooker::register(), PacketHooker::isRegistered() should return true. but it returns false.
And since the flag has not been updated, multiple registration is possible without exception.
Looks like master also had this issue 👀
I was wondering if the bool should be set at the end of the method instead, in case SimplePacketHandler throws some issue
Hi, this fixes an issue where
PacketHooker::isRegistered()
doesn't work.Call
PacketHooker::register()
,PacketHooker::isRegistered()
should return true. but it returns false. And since the flag has not been updated, multiple registration is possible without exception.result: