Fix ProtocolLib error on proxied servers + Optifine check
This small update fixes a bug reported on servers using a proxy like Bungeecord where the packet detection would cause an error in console and fail on 1.21.3. It also introduces a new check for recent Optifine versions that can now be detected.