public static void HandlePacket(WormholesMod mymod, BinaryReader reader, int player_who)
        {
            WormholeNetProtocolTypes protocol = (WormholeNetProtocolTypes)reader.ReadByte();

            switch (protocol)
            {
            case WormholeNetProtocolTypes.RequestWormholesAndModSettings:
                ServerPacketHandlers.ReceiveWormholesAndSettingsRequestOnServer(mymod, reader, player_who);
                break;

            case WormholeNetProtocolTypes.RequestWormholeReroll:
                ServerPacketHandlers.ReceiveWormholeRerollRequestOnServer(mymod, reader, player_who);
                break;

            default:
                ErrorLogger.Log("Invalid packet protocol: " + protocol);
                break;
            }
        }
        public static void HandlePacket(WormholesMod mymod, BinaryReader reader)
        {
            WormholeNetProtocolTypes protocol = (WormholeNetProtocolTypes)reader.ReadByte();

            switch (protocol)
            {
            case WormholeNetProtocolTypes.WormholesAndModSettings:
                ClientPacketHandlers.ReceiveWormholesAndSettingsOnClient(mymod, reader);
                break;

            case WormholeNetProtocolTypes.WormholeUpdate:
                ClientPacketHandlers.ReceiveWormholeUpdateOnClient(mymod, reader);
                break;

            default:
                ErrorLogger.Log("Invalid packet protocol: " + protocol);
                break;
            }
        }